###### (This function is part of SDL_mixer, a separate library from SDL.) # MIX_DestroyAudio Destroy the specified audio. ## Header File Defined in [](https://github.com/libsdl-org/SDL_mixer/blob/main/include/SDL3_mixer/SDL_mixer.h) ## Syntax ```c void MIX_DestroyAudio(MIX_Audio *audio); ``` ## Function Parameters | | | | | ------------------------ | --------- | --------------------- | | [MIX_Audio](MIX_Audio) * | **audio** | the audio to destroy. | ## Remarks [MIX_Audio](MIX_Audio) is reference-counted internally, so this function only unrefs it. If doing so causes the reference count to drop to zero, the [MIX_Audio](MIX_Audio) will be deallocated. This allows the system to safely operate if the audio is still assigned to a [MIX_Track](MIX_Track) at the time of destruction. The actual destroying will happen when the track stops using it. But from the caller's perspective, once this function is called, it should assume the `audio` pointer has become invalid. Destroying a NULL [MIX_Audio](MIX_Audio) is a legal no-op. ## Thread Safety It is safe to call this function from any thread. ## Version This function is available since SDL_mixer 3.0.0. ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategorySDLMixer](CategorySDLMixer)