Prevent custom audio sequences from filling up all available memory

This commit is contained in:
MysterD 2023-04-22 01:47:24 -07:00
parent eb413b5777
commit 7f2c6d86c2
1 changed files with 1 additions and 1 deletions

View File

@ -1567,7 +1567,7 @@ void load_sequence_internal(u32 player, u32 seqId, s32 loadAsync) {
if (smlua_audio_utils_override(seqId, &bankId, &sequenceData)) { if (smlua_audio_utils_override(seqId, &bankId, &sequenceData)) {
sequence_player_disable(seqPlayer); sequence_player_disable(seqPlayer);
seqPlayer->defaultBank[0] = bankId; seqPlayer->defaultBank[0] = bankId;
if (!bank_load_immediate(bankId, 2)) { return; } if (!bank_load_immediate(bankId, 0)) { return; }
seqPlayer->seqId = seqId; seqPlayer->seqId = seqId;
gSeqLoadStatus[seqId] = SOUND_LOAD_STATUS_COMPLETE; gSeqLoadStatus[seqId] = SOUND_LOAD_STATUS_COMPLETE;
init_sequence_player(player); init_sequence_player(player);