mixDestroyTrack function mixer
Destroy the specified track.
If the track is currently playing, it will be stopped immediately, without any fadeout. If there is a callback set through MIX_SetTrackStoppedCallback(), it will not be called.
If the mixer is currently mixing in another thread, this will block until it finishes.
Destroying a NULL MIX_Track is a legal no-op.
\param track the track to destroy.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL_mixer 3.0.0.
extern SDL_DECLSPEC void SDLCALL MIX_DestroyTrack(MIX_Track *track)
Implementation
void mixDestroyTrack(Pointer<MixTrack> track) {
final mixDestroyTrackLookupFunction = _libMixer
.lookupFunction<
Void Function(Pointer<MixTrack> track),
void Function(Pointer<MixTrack> track)
>('MIX_DestroyTrack');
return mixDestroyTrackLookupFunction(track);
}