Destroy the specified track.
Defined in <SDL3_mixer/SDL_mixer.h>
void MIX_DestroyTrack(MIX_Track *track);
MIX_Track * | track | the track to destroy. |
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.
It is safe to call this function from any thread.
This function is available since SDL_mixer 3.0.0.