(ALSA) Call snd_pcm_hw_params_set_rate_resample

This commit is contained in:
twinaphex 2017-01-26 04:42:56 +01:00
parent d5db559d38
commit 8d863bde3d

View File

@ -97,6 +97,8 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
if (snd_pcm_hw_params_set_channels(alsa->pcm, params, channels) < 0)
goto error;
/* Don't allow rate resampling when probing for the default rate (but ignore if this call fails) */
snd_pcm_hw_params_set_rate_resample(alsa->pcm, params, 0 );
if (snd_pcm_hw_params_set_rate(alsa->pcm, params, rate, 0) < 0)
goto error;