Skip to content

Commit

Permalink
Close mixer audio device (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug committed Jan 4, 2025
1 parent e974d8b commit f922477
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ void SDL_AppQuit(void* appstate, SDL_AppResult result) {

Mix_FadeOutMusic(500); // prevent the music from abruptly ending. this call blocks until the music has finished fading
Mix_FreeMusic(app->music);
Mix_CloseAudio();
SDL_CloseAudioDevice(app->audioDevice);

delete app;
Expand Down

0 comments on commit f922477

Please sign in to comment.