Follow-up Comment #9, bug #24844 (project freeciv):

"Any callback set by Mix_HookMusicFinished will be called when the music
finishes fading out" in
https://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_68.html#SEC68 sounds
interesting, because sdl_audio_stop() in audio_sdl.c is a
Mix_FadeOutMusic(2000).

There's a 100ms sdl_audio_wait() loop while Mix_Playing(-1), with an also
interesting warning: "WARNING: If a channel is looping, it will NEVER exit!
Always call music_stop() first!".

If that's stop_menu_music() or stop_style_muxic() in music.c it only calls
audio_stop() in audio.c, and that's audio_sdl.c sdl_audio_stop() handled as
the Mix_FadeOutMusic(2000).

Sooner *or later+ the delay loop will end at a point in time when
Mix_Playing(-1) = 0, and sdl_audio_shutdown() can finish the job. Are we
talking about *or later* here? 

 



    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24844>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to