Skip to content

Commit

Permalink
Call Mix_HookMusicFinished when Mix_HaltMusic is called.
Browse files Browse the repository at this point in the history
Fixes Bugzilla #1610.
(transplanted from a4e9c53d9c30fb2315a07e338b8208b8e7d3b8c4)
  • Loading branch information
gabomdq committed Jan 3, 2013
1 parent b1d401b commit db8a771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions music.c
Expand Up @@ -1283,6 +1283,9 @@ int Mix_HaltMusic(void)
SDL_LockAudio();
if ( music_playing ) {
music_internal_halt();
if ( music_finished_hook ) {
music_finished_hook();
}
}
SDL_UnlockAudio();

Expand Down

0 comments on commit db8a771

Please sign in to comment.