Thanks to this fantastic post. Fixed my issue.
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow