0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00
mpv/audio/out
Kevin Mitchell 3aad89829f ao_wasapi: try mix format except for chmap
In shared mode, we previously tried to feed the full native format to
IsFormatSupported in the hopes that the "closest match" returned was
actually that.

Turns out, IsFormatSupported will always return the mix format if we
don't use the mix format's sample rate. This will also clobber our
choice of channel map with the mix format channel map even if our
desired channel map is supported due to surround emulation.

The solution is to not bother trying to use anything other than the mix
format sample rate. While we're at it, we might as well use the mix
format PCM sample format (always float32) since this conversion will
happen anyway and may avoid unecessary dithering to intermediate
integer formats if we are already resampling or channel mixing.
2020-03-19 20:39:44 +02:00
..
ao_alsa.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_audiotrack.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_audiounit.m ao/audiounit: include AVAudioSession buffer in latency calc 2019-04-05 10:29:44 +07:00
ao_coreaudio_chmap.c audio/out: add AudioUnit output driver for iOS 2016-11-01 16:25:40 +01:00
ao_coreaudio_chmap.h audio/out: add AudioUnit output driver for iOS 2016-11-01 16:25:40 +01:00
ao_coreaudio_exclusive.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_coreaudio_properties.c ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_properties.h ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_utils.c ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_coreaudio_utils.h ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_coreaudio.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_jack.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_lavc.c ao_lavc: don't spam underrun warnings 2020-03-13 16:50:27 +01:00
ao_null.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_openal.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_opensles.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_oss.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_pcm.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_pulse.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_rsound.c ao_rsound: allow setting the host 2017-08-21 15:46:00 +02:00
ao_sdl.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao_sndio.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_wasapi_changenotify.c ao_wasapi_changenotify: use %ls instead of %S for wchar_t 2017-04-20 07:38:03 +02:00
ao_wasapi_utils.c ao_wasapi: try mix format except for chmap 2020-03-19 20:39:44 +02:00
ao_wasapi.c audio/out: rip out old unused app/softvolume reporting 2019-10-11 21:05:11 +02:00
ao_wasapi.h ao_wasapi: reorganize wasapi.h 2017-08-07 14:33:03 -07:00
ao.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
ao.h player: consider audio buffer if AO driver does not report underruns 2020-02-13 01:32:58 +01:00
internal.h player: consider audio buffer if AO driver does not report underruns 2020-02-13 01:32:58 +01:00
pull.c audio: slightly simplify pull underrun message printing 2020-02-13 18:02:16 +01:00
push.c player: consider audio buffer if AO driver does not report underruns 2020-02-13 01:32:58 +01:00