mixChannelFinished function
Set a callback that runs when a channel has finished playing.
The callback may be called from the mixer's audio callback or it could be called as a result of Mix_HaltChannel(), etc.
The callback has a single parameter, channel
, which says what mixer
channel has just stopped.
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.
A NULL pointer will disable the callback.
\param channel_finished the callback function to become the new notification mechanism.
\since This function is available since SDL_mixer 3.0.0.
extern SDL_DECLSPEC void SDLCALL Mix_ChannelFinished(Mix_ChannelFinishedCallback channel_finished)
Implementation
void mixChannelFinished(
Pointer<NativeFunction<MixChannelFinishedCallback>> channelFinished) {
final mixChannelFinishedLookupFunction = libSdl3Mixer.lookupFunction<
Void Function(
Pointer<NativeFunction<MixChannelFinishedCallback>> channelFinished),
void Function(
Pointer<NativeFunction<MixChannelFinishedCallback>>
channelFinished)>('Mix_ChannelFinished');
return mixChannelFinishedLookupFunction(channelFinished);
}