diff options
author | Martin Herkt <lachs0r@srsfckn.biz> | 2013-11-26 02:48:00 +0100 |
---|---|---|
committer | Martin Herkt <lachs0r@srsfckn.biz> | 2013-11-26 02:48:00 +0100 |
commit | 7d152965ce7c735a8157de6f430b2e6587a98ec5 (patch) | |
tree | 82a13d452e0b5407341e035676be6d9f0553093f | |
parent | 8846a2f95c274aeccdf9755dffa69b2a40a942e5 (diff) | |
download | mpv-7d152965ce7c735a8157de6f430b2e6587a98ec5.tar.bz2 mpv-7d152965ce7c735a8157de6f430b2e6587a98ec5.tar.xz |
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.
-rw-r--r-- | audio/out/ao_alsa.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index a8df1c9f25..84add0a40c 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -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"); |