Exposed registering a handler for playing sounds.

This commit is contained in:
MeltyPlayer
2022-10-19 23:46:13 -05:00
parent babdc896b5
commit a179746889
5 changed files with 33 additions and 1 deletions
+7
View File
@@ -85,6 +85,13 @@ SM64_LIB_FN void sm64_register_debug_print_function( SM64DebugPrintFunctionPtr d
g_debug_print_func = debugPrintFunction;
}
typedef void (*SM64PlaySoundFunctionPtr)( uint32_t soundBits, f32 *pos );
SM64_LIB_FN void sm64_register_play_sound_function( SM64PlaySoundFunctionPtr playSoundFunction )
{
g_play_sound_func = playSoundFunction;
}
SM64_LIB_FN void sm64_global_init( uint8_t *rom, uint8_t *outTexture )
{
if( s_init_global )