c - Alsa device repeating sound -
when not providing new data buffer playback device, repeats given data buffer. how overcome this?
tried snd_pcm_drop , snd_pcm_prepare. didn't helped.
in sw params have used, snd_pcm_sw_params_set_start_threshold() - start playback when available frames >= threshold value. , same snd_pcm_sw_params_set_stop_threshold().
any appriciated.
i have seen snd_pcm_sw_params_set_silence_threshold() api, dont know helpful in case or not.
thanks fantastic post. fixed issue.
Comments
Post a Comment