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.

有帮助吗?

解决方案

Thanks to this fantastic post. Fixed my issue.

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top