Question

When not providing new data buffer to playback device, it repeats previously given data buffer. How to overcome this?

tried snd_pcm_drop and snd_pcm_prepare. but didn't helped.

in sw params i have used, snd_pcm_sw_params_set_start_threshold() - to start playback when available frames are >= threshold value. and same as snd_pcm_sw_params_set_stop_threshold().

any help will be appriciated.

i have seen snd_pcm_sw_params_set_silence_threshold() API, but dont know it will be helpful in this case or not.

Était-ce utile?

La solution

Thanks to this fantastic post. Fixed my issue.

http://www.spinics.net/linux/fedora/alsa-user/msg09906.html

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top