get static method

Pointer<MixChunk> get(
  1. int channel
)

Get the Mix_Chunk currently associated with a mixer channel.

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

\param channel the channel to query. \returns the associated chunk, if any, or NULL if it's an invalid channel.

\since This function is available since SDL_mixer 3.0.0.

extern SDL_DECLSPEC Mix_Chunk * SDLCALL Mix_GetChunk(int channel)

Implementation

static Pointer<MixChunk> get(int channel) {
  return mixGetChunk(channel);
}