Increased number of audio channels to 14 (#409)

This commit is contained in:
MeirGavish
2026-03-30 06:04:25 +03:00
committed by GitHub
parent ff2c792a3b
commit 18f70714ce
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -40,6 +40,13 @@
*/
#define SFX_DEFAULT_PAN MM_PAN_CENTER
/**
* @def GBAL_MM_NUM_CHANNELS
* The number of audio channels to allocate for maxmod,
* passed to mmInitDefault()
*/
#define GBAL_MM_NUM_CHANNELS 14
/**
* @brief Play a sound effect, wrapper for mmEffectEx()
* See https://maxmod.org/ref/functions/mm_sound_effect.html
+2 -1
View File
@@ -17,6 +17,7 @@
#include "background_gfx.h"
// Audio
#include "audio_utils.h"
#include "soundbank.h"
#include "soundbank_bin.h"
@@ -83,7 +84,7 @@ void init()
DCNT_WIN1;
// Initialize subsystems
mmInitDefault((mm_addr)soundbank_bin, 12);
mmInitDefault((mm_addr)soundbank_bin, GBAL_MM_NUM_CHANNELS);
affine_background_init();
sprite_init();
card_init();