Effacer les filtres
Effacer les filtres

ALSA lib pcm Error

3 vues (au cours des 30 derniers jours)
JAAdrian
JAAdrian le 28 Juin 2015
Commenté : JAAdrian le 1 Juil 2015
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?

Réponse acceptée

Adam Hug
Adam Hug le 30 Juin 2015
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 commentaire
JAAdrian
JAAdrian le 1 Juil 2015
Brilliant, works like a charm!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by