(ALSA) Use non-near version of set_channels - we don't yet support

anything other than stereo
This commit is contained in:
twinaphex 2017-01-28 16:00:57 +01:00
parent 4a5688ffe7
commit 74b2fde05a

View File

@ -95,7 +95,7 @@ static void *alsa_init(const char *device, unsigned rate, unsigned latency,
if (snd_pcm_hw_params_set_format(alsa->pcm, params, format) < 0)
goto error;
if (snd_pcm_hw_params_set_channels_near(alsa->pcm, params, &channels) < 0)
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) */