フィルターのクリア

Audio Toolbox unresponsive/not working

5 ビュー (過去 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 Center および File ExchangeAudio and Video Data についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by