0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/audio/out
wm4 46f59f25c2 ao_alsa: map mp_chmaps back to ALSA in a different way
Instead of constructing an ALSA channel map from mpv ones from scratch,
try to find the original ALSA channel map again. Th result is that we
need to convert channel maps only in one direction. If we need to map
a mp_chmap to ALSA, we fetch the device's channel map list, convert
each entry to mp_chmap, and find the first one which fits.

This seems helpful for the following commit. For now, this only gets rid
of mapping back the trivial MONO mapping, which alone would still be
acceptable, but with other channel layout mogrifications it gets messy
fast. While we need to do something awkward to keep our channel map
reordering for VAR chmaps (which basically gives nicer output and
possibly slightly better performance), this is still the better
solution.
2015-11-04 21:48:37 +01:00
..
ao_alsa.c ao_alsa: map mp_chmaps back to ALSA in a different way 2015-11-04 21:48:37 +01:00
ao_coreaudio_chmap.c ao_coreaudio_exclusive: fallback to stereo on unknown channel layouts 2015-10-26 15:55:11 +01:00
ao_coreaudio_chmap.h ao_coreaudio_exclusive: deal with devices return different channel count 2015-10-21 18:54:48 +02:00
ao_coreaudio_exclusive.c ao_coreaudio_exclusive: check for maximum channel count 2015-10-26 16:00:24 +01:00
ao_coreaudio_properties.c ao_coreaudio: use device UID instead of ID for selection 2015-02-03 00:40:02 +01:00
ao_coreaudio_properties.h ao_coreaudio: report hardware latency to ao_read_data 2014-07-03 20:05:15 +02:00
ao_coreaudio_utils.c ao_coreaudio: log current format before setting new format 2015-10-21 18:53:50 +02:00
ao_coreaudio_utils.h ao_coreaudio: fix device latency, share the code 2015-07-06 17:49:28 +02:00
ao_coreaudio.c ao_coreaudio: avoid unnecessary format changes 2015-10-21 18:54:36 +02:00
ao_dsound.c win32: revert wchar_t changes 2015-08-01 21:09:11 +02:00
ao_jack.c Update license headers 2015-04-13 12:10:01 +02:00
ao_lavc.c audio: use AVFrames with more than 8 channels correctly 2015-10-26 15:54:00 +01:00
ao_null.c ao_null: add an option for testing channel layout selection 2015-04-27 23:21:58 +02:00
ao_openal.c Update license headers 2015-04-13 12:10:01 +02:00
ao_oss.c ao_oss: use new sample format determination code 2015-09-10 23:39:46 +02:00
ao_pcm.c audio: fix format function consistency issues 2015-06-26 23:06:37 +02:00
ao_pulse.c audio: fix format function consistency issues 2015-06-26 23:06:37 +02:00
ao_rsound.c audio: remove S8, U16, U24, U32 formats 2015-06-16 21:11:59 +02:00
ao_sdl.c audio: remove S8, U16, U24, U32 formats 2015-06-16 21:11:59 +02:00
ao_sndio.c ao_sndio: fix comment 2015-06-26 23:03:37 +02:00
ao_wasapi_changenotify.c win32: revert wchar_t changes 2015-08-01 21:09:11 +02:00
ao_wasapi_utils.c audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
ao_wasapi_utils.h ao/wasapi: use atomic state variable instead of different events 2015-04-04 16:31:14 -07:00
ao_wasapi.c win32: revert wchar_t changes 2015-08-01 21:09:11 +02:00
ao_wasapi.h ao/wasapi: use atomic state variable instead of different events 2015-04-04 16:31:14 -07:00
ao.c audio: always log channel maps before determining final map 2015-10-26 15:52:08 +01:00
ao.h audio: add option for falling back to ao_null 2015-10-05 19:12:23 +02:00
internal.h ao: make better use of atomics 2015-05-11 23:27:41 +02:00
pull.c audio/out/pull: avoid dropping some audio when draining 2015-06-09 18:26:14 +02:00
push.c audio: fix format function consistency issues 2015-06-26 23:06:37 +02:00