SDL Wiki
(This function is part of SDL_mixer, a separate library from SDL.)


Get the Mix_Chunk currently associated with a mixer channel.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>


Mix_Chunk * Mix_GetChunk(int channel);

Function Parameters

int channel the channel to query.

Return Value

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


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


This function is available since SDL_mixer 3.0.0.

CategoryAPI, CategoryAPIFunction

[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.