mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
48c2e9d67d
commit
f3a003e550
|
@ -22,7 +22,7 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "misc/bstr.h"
|
#include "misc/bstr.h"
|
||||||
|
|
||||||
#define MP_NUM_CHANNELS 8
|
#define MP_NUM_CHANNELS 16
|
||||||
|
|
||||||
// Speaker a channel can be assigned to.
|
// Speaker a channel can be assigned to.
|
||||||
// This corresponds to WAVEFORMATEXTENSIBLE channel mask bit indexes.
|
// This corresponds to WAVEFORMATEXTENSIBLE channel mask bit indexes.
|
||||||
|
|
Loading…
Reference in New Issue