add libsm64 functions to play sound/music

from ckosmic's fork.
also libsm64.h will now include audio_defines.h and seq_ids.h for easy access to sound and music IDs
This commit is contained in:
headshot2017
2023-01-26 20:00:02 -04:00
parent 9ae96c42f0
commit 45c8eb1490
3 changed files with 49 additions and 0 deletions
+3
View File
@@ -115,6 +115,8 @@ int main( void )
audio_init();
sm64_play_music(0, SEQ_LEVEL_WATER | SEQ_VARIATION, 0);
do
{
float dt = (SDL_GetTicks() - lastTicks) / 1000.f;
@@ -219,6 +221,7 @@ int main( void )
}
while( context_flip_frame_poll_events() );
sm64_stop_background_music(sm64_get_current_background_music());
sm64_global_terminate();
context_terminate();