summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-26 15:54:19 +0100
committerwm4 <wm4@nowhere>2015-10-26 15:54:19 +0100
commitf3a003e550a9664bacfeadb52f57d952198f502c (patch)
tree5b8234303ffba03da69ba01d87e1a6ee3b8eed83 /audio
parent48c2e9d67d36af8aff354b18ab2ddda26abca117 (diff)
downloadmpv-f3a003e550a9664bacfeadb52f57d952198f502c.tar.bz2
mpv-f3a003e550a9664bacfeadb52f57d952198f502c.tar.xz
audio: bump maximum number of channels to 16
The main reason is that ao_coreaudio_exclusive needs this for some OSX devices. They want packed audio, and special-casing this in the coreaudio code would be too much of a pain. The maximum of channels we can support is 64 (because FFmpeg uses 64 bit masks for channel layouts), but since struct mp_audio can get pretty big (has static allocations of 2 pointers for each channel for planar mode), it's less wasteful to stay lower for now.
Diffstat (limited to 'audio')
-rw-r--r--audio/chmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/chmap.h b/audio/chmap.h
index b27ec3bda8..77769ec3ff 100644
--- a/audio/chmap.h
+++ b/audio/chmap.h
@@ -22,7 +22,7 @@
#include <stdbool.h>
#include "misc/bstr.h"
-#define MP_NUM_CHANNELS 8
+#define MP_NUM_CHANNELS 16
// Speaker a channel can be assigned to.
// This corresponds to WAVEFORMATEXTENSIBLE channel mask bit indexes.