Re: Broken playback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gabriele Melia wrote:
> i have already tried to read and decode some data in order to accumulate
> 1 second of data to prevent broken audio,
> but nothing change, analysing the issue i have found that broken audio
> comes when the snd_pcm_writei is called with a size that is 5000. So it
> takes time to dispach all this size.

Try non-blocking mode (see the snd_pcm_nonblock function).  In non-
blocking mode, the writei call will only write as much data as can be
written without waiting (or returns -EAGAIN if the buffer is already
full at the moment).


HTH
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux