.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_mixer's wiki page for Mix_ChannelFinished: .\" https://wiki.libsdl.org/SDL_mixer/Mix_ChannelFinished .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240319~12fb85e+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20Mix_ChannelFinished .\" SDL_mixer can be found at https://libsdl.org/projects/SDL_mixer .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH Mix_ChannelFinished 3 "SDL_mixer 3.0.0" "SDL_mixer" "SDL_mixer3 FUNCTIONS" .SH NAME Mix_ChannelFinished \- Set a callback that runs when a channel has finished playing\[char46] .SH SYNOPSIS .nf .B #include \(dqSDL3_mixer/SDL_mixer.h\(dq .PP .BI "void Mix_ChannelFinished(void (SDLCALL *channel_finished)(int channel)); .fi .SH DESCRIPTION The callback may be called from the mixer's audio callback or it could be called as a result of .BR Mix_HaltChannel (), etc\[char46] The callback has a single parameter, .BR channel , which says what mixer channel has just stopped\[char46] Do not call SDL_LockAudio() from this callback; you will either be inside the audio callback, or SDL_mixer will explicitly lock the audio before calling your callback\[char46] A NULL pointer will disable the callback\[char46] .SH FUNCTION PARAMETERS .TP .I channel_finished the callback function to become the new notification mechanism\[char46] .SH AVAILABILITY This function is available since SDL_mixer 3\[char46]0\[char46]0\[char46]