Audio Toolbox unresponsive/not working

14 visualizzazioni (ultimi 30 giorni)
Christian Katona
Christian Katona il 15 Mar 2022
Whenever I try to use any function or block from the Audio Toolbox in MATLAB and Simulink, MATLAB becomes unresponsive, starts using 2GB of ram, and just states its Busy. The program doesn't crash, there are no warnings or error messages, it just starts loading something forever. The issue persists after reinstalling, and updating MATLAB and the toolbox.
  6 Commenti
Peter O
Peter O il 16 Mar 2022
Is anything else possibly trying to access the drivers at the same time that is maybe locking it up? A media player or taskbar widget? What's the audio driver in use?
Christian Katona
Christian Katona il 16 Mar 2022
It does this when MATLAB is the only program running. If i play the beep command, it makes the sound, so I don't think its a driver issue.

Accedi per commentare.

Risposte (1)

Srijith Kasaragod
Srijith Kasaragod il 5 Apr 2022
Firstly, make sure that you are not using any "Wake on Voice" features. If so, disable them and see if that fixes the issue.
Try the following steps and see if the issue is resolved:
1. Check if the "beep" command works.
2. Try running the following code:
load('handel.mat');
player = audioplayer(y,Fs);
play(player);
3. Try running:
info = audiodevinfo();
struct2table(info.output)
If this fails and you experience a freeze/hang, follow the steps at the bottom of the page (titled "If Step 3 failed").
4. If playing Handel did not work, look at the table that is displayed in point 3, identify output audio devices that would be suitable for testing, note their IDs (3rd column), and then test the following code for each device, where the last argument in the call to AUDIOPLAYER is the device ID:
load('handel.mat') ;
player = audioplayer(y, Fs, 16, 5) ; % <-- replace the 5 here by relevant device ID(s), one at a time
play(player);
5. Finally, right-click on the loudspeaker icon in Windows 10 task bar, click on Sounds, then pick the Playback tab, and send me a screenshot of all devices present.
If Step 3 failed:
1. There may be an issue with the PortAudio library. Check whether it is shipped using the following command. If the output is zero, the library is missing. If the output is 2, the library is present.
exist(fullfile(matlabroot,'bin','win64','libportaudio.dll'), 'file' );
2. Install Audacity and play any sample WAV file. Audacity also uses PortAudio, so this is a good way to test another package that relies on this library. Let me know if this works, or if it stalls or crashes.
I hope this helps!
  1 Commento
Christian Katona
Christian Katona il 7 Apr 2022
Thanks for your response.
I am in contact with matlab support at this point, and they've lead me through this process already. No fix as of yet.

Accedi per commentare.

Categorie

Scopri di più su Code Generation and Deployment in Help Center e File Exchange

Prodotti


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by