1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 06:14:32 +00:00
mpv/audio/out
wm4 f1072e7629 ao_alsa: disable ALSA resampling by default again
This partially reverts commit 7d152965. It turns out that at least some
ALSA drivers (at least snd-hda-intel) report incorrect audio delay with
non-native sample rates, even if the sample rate is only very slightly
different from the native one.

For example, 48000Hz is fine on my hda-intel system, while both 8000Hz
and 47999Hz lead to a delay off by 40ms (according to mpv's A/V
difference display), which suggests that something in ALSA is
calculating the delay using the wrong sample rate.

As an additional problem, with ALSA resampling enabled, using
48001Hz/float/2ch fails, while 49000Hz/float/2ch or 48001Hz/s16/2ch
work. With resampling disabled, all these cases work obviously, because
our own resampler doesn't just refuse any of these formats.

Since some people want to use the ALSA resampler (because it's highly
configurable, supports multiple backends, etc.), we still allow enabling
ALSA resampling with an ao_alsa suboption.
2013-11-29 15:59:53 +01:00
..
ao_alsa.c ao_alsa: disable ALSA resampling by default again 2013-11-29 15:59:53 +01:00
ao_coreaudio_properties.c ao_coreaudio: move to new log API 2013-08-01 20:32:49 +02:00
ao_coreaudio_properties.h ao_coreaudio: fix compilation on OS X 10.7 2013-07-28 09:48:49 +02:00
ao_coreaudio_utils.c ao_coreaudio: simplify ch label to speaker id conversion 2013-11-27 23:15:17 +01:00
ao_coreaudio_utils.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
ao_coreaudio.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao_dsound.c audio: drop "_NE"/"ne" suffix from audio formats 2013-11-15 21:25:05 +01:00
ao_jack.c ao_jack: switch from interleaved to planar audio 2013-11-12 23:35:12 +01:00
ao_lavc.c ao_lavc: use af_format_conversion_score() 2013-11-16 21:46:17 +01:00
ao_null.c ao_null: fix simulated buffer size 2013-11-19 22:14:23 +01:00
ao_openal.c ao_openal: support non-interleaved output 2013-11-12 23:30:37 +01:00
ao_oss.c audio: drop "_NE"/"ne" suffix from audio formats 2013-11-15 21:25:05 +01:00
ao_pcm.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao_portaudio.c audio: drop "_NE"/"ne" suffix from audio formats 2013-11-15 21:25:05 +01:00
ao_pulse.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao_rsound.c ao_rsound: fix option types 2013-11-23 21:40:33 +01:00
ao_sdl.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao_sndio.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao_wasapi.c audio/out: prepare for non-interleaved audio 2013-11-12 23:27:51 +01:00
ao.c audio: switch output to mp_audio_buffer 2013-11-12 23:29:53 +01:00
ao.h audio: switch output to mp_audio_buffer 2013-11-12 23:29:53 +01:00