Scroll to navigation

Mix_GetChunk(3) SDL_mixer3 FUNCTIONS Mix_GetChunk(3)

NAME

Mix_GetChunk - Get the Mix_Chunk
currently associated with a mixer channel.

SYNOPSIS

#include "SDL3_mixer/SDL_mixer.h"
Mix_Chunk * Mix_GetChunk(int channel);

DESCRIPTION

You may not specify MAX_CHANNEL_POST or -1 for a channel.

FUNCTION PARAMETERS

the channel to query.

RETURN VALUE

Returns the associated chunk, if any, or NULL if it's an invalid channel.

AVAILABILITY

This function is available since SDL_mixer 3.0.0.

SDL_mixer 3.0.0 SDL_mixer