diff options
author | wm4 <wm4@nowhere> | 2015-10-26 15:54:45 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-26 15:54:45 +0100 |
commit | c971fefd41f530e7974dd262c22e3b0915f1756a (patch) | |
tree | b91ba3e728bcadd9940e9d7b116d6aaa411a2e34 /audio/audio.c | |
parent | 9ed289ef90224c5076af1427ced994eef6e3c9fe (diff) | |
download | mpv-c971fefd41f530e7974dd262c22e3b0915f1756a.tar.bz2 mpv-c971fefd41f530e7974dd262c22e3b0915f1756a.tar.xz |
ao_coreaudio_chmap: allow stereo as fallback; avoid mono fallback
If no channel layouts were determined (which can actually happen with
some "strange" devices), the selection code was falling back to mono,
because mono is always added as a fallback. This doesn't seem quite
right.
Allow a fallback to stereo too, if no channel layout could be retrieved
at all. So we always assume that mono and stereo work, if no other
layouts are available.
(I still don't know what the CoreAudio stereo layout is supposed to do.
It could be used to swap left and right channels. It could also be used
to pad/move the channels, but I have never seen that. And it can be set
to non-stereo channels, which breaks mpv. Whatever.)
Diffstat (limited to 'audio/audio.c')
0 files changed, 0 insertions, 0 deletions