Increase max number of concurrent layers and channels (#527)
At worst, this eats up a few KB of memory. Runtime difference should be negligible when the extra data is not being used.
This commit is contained in:
1 parent
683ac0b2bf
commit
65d29dc337
1 file changed
+13
-8
+13
-8
@@ -7,21 +7,26 @@
|
||||
|
||||
#if defined(VERSION_EU) || defined(VERSION_SH)
|
||||
#define SEQUENCE_PLAYERS 4
|
||||
#define SEQUENCE_CHANNELS 48
|
||||
#define SEQUENCE_LAYERS 64
|
||||
#else
|
||||
#define SEQUENCE_PLAYERS 3
|
||||
#define SEQUENCE_CHANNELS 32
|
||||
#ifdef VERSION_JP
|
||||
#define SEQUENCE_LAYERS 48
|
||||
#else
|
||||
#define SEQUENCE_LAYERS 52
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define LAYERS_MAX 4
|
||||
#define CHANNELS_MAX 16
|
||||
|
||||
#ifdef EXPAND_AUDIO_HEAP // Not technically on the heap but it's memory nonetheless...
|
||||
#define SEQUENCE_CHANNELS (SEQUENCE_PLAYERS * CHANNELS_MAX)
|
||||
#define SEQUENCE_LAYERS ((SEQUENCE_CHANNELS * LAYERS_MAX) / 2) // This should be more than plenty in nearly all circumstances.
|
||||
#else // EXPAND_AUDIO_HEAP
|
||||
#if defined(VERSION_EU) || defined(VERSION_SH)
|
||||
#define SEQUENCE_CHANNELS 48
|
||||
#define SEQUENCE_LAYERS 64
|
||||
#else
|
||||
#define SEQUENCE_CHANNELS 32
|
||||
#define SEQUENCE_LAYERS 52
|
||||
#endif
|
||||
#endif // EXPAND_AUDIO_HEAP
|
||||
|
||||
#define NO_LAYER ((struct SequenceChannelLayer *)(-1))
|
||||
|
||||
enum MuteBehaviors {
|
||||
|
||||
Reference in new issue
Block a user