From f3a003e550a9664bacfeadb52f57d952198f502c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 26 Oct 2015 15:54:19 +0100 Subject: 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. --- audio/chmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio') 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 #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. -- cgit v1.2.3