- Navigate to $MATLABROOT/toolbox/matlab/audiovideo/@audioplayer/ and open audioplayer.m for editing.
- Increase the value of DesiredLatency (on line 147) to something like 0.1
- Save the file and retry playing the audio files from MATLAB
ALSA lib pcm Error
4 次查看(过去 30 天)
显示 更早的评论
I am having trouble playing sound with MATLAB R2015a on Linux/XUbuntu 15.04. When executing
load handel;
sound(y,Fs);
for instance, the terminal throws the errors shown in the attachement. A colleague of mine is facing the same issues on an XUbuntu machine.
I use an external class complient USB sound interface (Lexicon Alpha) which is the system's default sound device.
What to do?
0 个评论
采纳的回答
Adam Hug
2015-6-30
Try increasing the value of the latency that the audio device runs at. To do this, execute the following steps :
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!