Commits

Anonymous committed 8808eb0

endmusic event

  • Participants
  • Parent commits 92ba355

Comments (0)

Files changed (3)

-#This is a list of changes in pygame's history.
+# This is a list of changes in pygame's history.
+#
+# CVS tag names are placed before the date
+# BREAK = change breaks existing code
+# BUG   = fixed a bug that was crashing
+
 
 Jan 8, 2001
+	more warning cleanups
+	music-finished callback fixed
 	replaces SDL's parachute with smarter python version
 
 Jan 6, 2001
 
 
 
-BREAK = change breaks existing code
-BUG   = fixed a bug that was crashing
-CVS tag names are placed before the date
 
 
 
-
 static void* PyMIXER_C_API[PYGAMEAPI_MIXER_NUMSLOTS] = {NULL};
 	if(!current_music)
 		return RAISE(PyExc_SDLError, "music not loaded");
 
+	Mix_HookMusicFinished(endmusic_callback);
+
 	val = Mix_PlayMusic(current_music, loops);
 	if(val == -1)
 		return RAISE(PyExc_SDLError, SDL_GetError());