Verified that audio has been initialized before playing sounds or ticking audio.

This commit is contained in:
MeltyPlayer
2022-12-06 17:38:17 -06:00
parent a81188b4ff
commit 85422d9d59
4 changed files with 18 additions and 4 deletions
+4
View File
@@ -4,6 +4,8 @@
#include "decomp/audio/load.h"
#include "decomp/audio/load_dat.h"
bool is_audio_initialized = false;
extern void load_audio_banks( uint8_t *rom ) {
uint8_t *rom2 = malloc( 0x800000 );
@@ -20,4 +22,6 @@ extern void load_audio_banks( uint8_t *rom ) {
audio_init();
sound_init();
sound_reset( 0 );
is_audio_initialized = true;
}