Scroll to navigation

Mix_FreeChunk(3) SDL_mixer3 FUNCTIONS Mix_FreeChunk(3)

NAME

Mix_FreeChunk - Free an audio chunk.

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
void Mix_FreeChunk(Mix_Chunk *chunk);

DESCRIPTION

An app should call this function when it is done with a

Mix_Chunk
and wants to dispose of its resources.

SDL_mixer will stop any channels this chunk is currently playing on. This will deregister all effects on those channels and call any callback specified by Mix_ChannelFinished () for each removed channel.

FUNCTION PARAMETERS

the chunk to free.

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SEE ALSO

Mix_LoadWAV(3), Mix_LoadWAV_IO(3), Mix_QuickLoad_WAV(3), Mix_QuickLoad_RAW(3)

SDL_mixer 3.0.0 SDL_mixer