Re: Broken playback

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

 



Gabriele Melia wrote:
> > snd_pcm_hw_params_set_buffer_size_near(), but the allowed values are
> > hardware dependent. You might want to add your own circular buffer that
> > is bigger than ALSA's.
>  
> So your suggestion is to limit my buffer_size after decode to be same of
> ALSA's?

No; my suggestion is to use your own buffer which is big enough for your
decoder, and use this buffer to fill ALSA's buffer, whenever possible.

If one call to your decoder function needs so much time that ALSA's
buffer can become emptied, you need another thread to re-fill the ALSA
buffer in parallel with the decoding.


Regards,
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