ao_alsa: do not forcibly disable ALSA resampling

Resampling with non-ancient ALSA setups works fine, so there is no
need to keep this around. Furthermore, as of writing, the default
builtin resampler used by many ALSA setups (taken from libspeex)
actually has higher quality than the default resampling modes of
avresample and swresample.
This commit is contained in:
Martin Herkt 2013-11-26 02:48:00 +01:00
parent 8846a2f95c
commit 7d152965ce
1 changed files with 0 additions and 6 deletions

View File

@ -475,12 +475,6 @@ static int init(struct ao *ao)
mp_chmap_from_channels_alsa(&ao->channels, num_channels);
}
/* workaround for buggy rate plugin (should be fixed in ALSA 1.0.11)
prefer our own resampler, since that allows users to choose the resampler,
even per file if desired */
err = snd_pcm_hw_params_set_rate_resample(p->alsa, alsa_hwparams, 0);
CHECK_ALSA_ERROR("Unable to disable resampling");
err = snd_pcm_hw_params_set_rate_near
(p->alsa, alsa_hwparams, &ao->samplerate, NULL);
CHECK_ALSA_ERROR("Unable to set samplerate-2");