Make MA_MAX_CHANNELS configurable.

This needs to be #define-d before the header *and* implementation
because it affects the size of publicly visible structures.
This commit is contained in:
David Reid
2020-06-14 13:33:14 +10:00
parent 5a7c2be726
commit 18a70db5a9
+2
View File
@@ -1912,7 +1912,9 @@ typedef int ma_result;
#define MA_SAMPLE_RATE_384000 384000
#define MA_MIN_CHANNELS 1
#ifndef MA_MAX_CHANNELS
#define MA_MAX_CHANNELS 32
#endif
#define MA_MIN_SAMPLE_RATE MA_SAMPLE_RATE_8000
#define MA_MAX_SAMPLE_RATE MA_SAMPLE_RATE_384000