Error when trying to play mp3 file
Afficher commentaires plus anciens
So for some reason this was working perfectly a couple hours ago, but now it seems like I cant play any audio files at all. Whenever I run the code, I get "Device error: invalid number of channels". Anyone know why?
heres the code:
A test I did with 1 file (same error)
[y, Fs] = audioread('old-victory-sound-roblox.mp3');
player = audioplayer(y, Fs);
play(player)
this is my og code that was working before:
[y,Fs]=audioread('old-victory-sound-roblox.mp3');
pw =audioplayer(y,Fs);
[y,Fs]=audioread('gaming-sound-effect-hd.mp3');
pl =audioplayer(y,Fs);
[y,Fs]=audioread('Kids Cheering - Gaming Sound Effect (HD).mp3');
wn =audioplayer(y,Fs);
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Audio and Video Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!