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

Mix_GetMusicDecoder

Get a music decoder's name.

Syntax

const char * Mix_GetMusicDecoder(int index);

Function Parameters

index index of the music decoder.

Return Value

Returns the music decoder's name.

Remarks

The requested decoder's index must be between zero and Mix_GetNumMusicDecoders()-1. It's safe to call this with an invalid index; this function will return NULL in that case.

This list can change between builds AND runs of the program, if external libraries that add functionality become available. You must successfully call Mix_OpenAudio() or Mix_OpenAudioDevice() before calling this function, as decoders are activated at device open time.

Version

This function is available since SDL_mixer 2.0.0.


CategoryAPI


[ 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.