Dispose of a Sound_Sample.
Defined in <SDL3_sound/SDL_sound.h>
void Sound_FreeSample(Sound_Sample *sample);| Sound_Sample * | sample | The Sound_Sample to delete. |
This will also close/dispose of the SDL_IOStream that was used at creation time, so there's no need to keep a reference to that around. The Sound_Sample pointer is invalid after this call, and will almos certainly result in a crash if you attempt to keep using it.
It is safe to call this function from any thread.
This function is available since SDL_sound 1.0.0.