From c0157e3d0fe58e9eabc4eeaa8c27c2699b25459f Mon Sep 17 00:00:00 2001 From: "J?rgen P. Tjern?" Date: Mon, 21 Apr 2014 12:53:54 -0700 Subject: [PATCH] Update comment for Mix_HookMusicFinished It was incorrectly stating that the hook only gets called if it's a "natural" finish of the music. --- SDL_mixer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL_mixer.h b/SDL_mixer.h index 53fac6d7..f5c53162 100644 --- a/SDL_mixer.h +++ b/SDL_mixer.h @@ -207,8 +207,8 @@ extern DECLSPEC void SDLCALL Mix_SetPostMix(void (*mix_func)(void *udata, Uint8 */ extern DECLSPEC void SDLCALL Mix_HookMusic(void (*mix_func)(void *udata, Uint8 *stream, int len), void *arg); -/* Add your own callback when the music has finished playing. - This callback is only called if the music finishes naturally. +/* Add your own callback for when the music has finished playing or when it is + * stopped from a call to Mix_HaltMusic. */ extern DECLSPEC void SDLCALL Mix_HookMusicFinished(void (*music_finished)(void));