Skip to content

Commit

Permalink
Don't call Mix_CloseAudio() at exit
Browse files Browse the repository at this point in the history
Mix_CloseAudio() crashes on some systems. I think we can get away with
not calling this since the application is quitting anyway.
  • Loading branch information
realnc committed Jan 13, 2011
1 parent 1095356 commit 9f12017
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ int main( int argc, char** argv )
Mix_ChannelFinished(0);
Mix_HookMusicFinished(0);
// Close the audio device as many times as it was opened.
// We disable this for now since it results in a crash in some systems.
// It looks like a clash between SDL_mixer and SDL_sound.
/*
int opened = Mix_QuerySpec(0, 0, 0);
for (int i = 0; i < opened; ++i) {
Mix_CloseAudio();
}
*/
Sound_Quit();
SDL_Quit();
return ret;
Expand Down

0 comments on commit 9f12017

Please sign in to comment.