필터 지우기
필터 지우기

ALSA lib pcm Error

조회 수: 4 (최근 30일)
JAAdrian
JAAdrian 2015년 6월 28일
댓글: JAAdrian 2015년 7월 1일
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?

채택된 답변

Adam Hug
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 :
  1. Navigate to $MATLABROOT/toolbox/matlab/audiovideo/@audioplayer/ and open audioplayer.m for editing.
  2. Increase the value of DesiredLatency (on line 147) to something like 0.1
  3. Save the file and retry playing the audio files from MATLAB
  댓글 수: 1
JAAdrian
JAAdrian 2015년 7월 1일
Brilliant, works like a charm!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by