table of contents
other versions
- experimental 3.1~git20250910~d032535+ds-1
MIX_DestroyTrack(3) | SDL_mixer3 FUNCTIONS | MIX_DestroyTrack(3) |
NAME¶
MIX_DestroyTrack - Destroy the specified track.
HEADER FILE¶
Defined in SDL3_mixer/SDL_mixer.h
SYNOPSIS¶
#include "SDL3_mixer/SDL_mixer.h"
void MIX_DestroyTrack(MIX_Track *track);
DESCRIPTION¶
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.
FUNCTION PARAMETERS¶
- track
- the track to destroy.
THREAD SAFETY¶
It is safe to call this function from any thread.
AVAILABILITY¶
This function is available since SDL_mixer 3.0.0.
SDL_mixer 3.1.0 | SDL_mixer |