Audio Toolbox unresponsive/not working

조회 수: 14 (최근 30일)
Christian Katona
Christian Katona 2022년 3월 15일
댓글: Christian Katona 2022년 4월 7일
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
Peter O
Peter O 2022년 3월 16일
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 2022년 3월 16일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Srijith Kasaragod
Srijith Kasaragod 2022년 4월 5일
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
Christian Katona
Christian Katona 2022년 4월 7일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Code Generation and Deployment에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by