MIX_GETAUDIODECODERPROPERTIES(3)
π NAME π
MIX_GetAudioDecoderProperties β bestie, this is the glow-up that grabs the properties hangin' off a MIX_AudioDecoder.
β¨ SYNOPSIS β¨
#include <SDL3_mixer/SDL_mixer.h>
SDL_PropertiesID MIX_GetAudioDecoderProperties(MIX_AudioDecoder *audiodecoder);
π DESCRIPTION π
So like, SDL_mixer ships with a few properties of its own, obviously, but this is ALSO a super convenient little spot for your app to stash its own app-specific data. Think of it as your decoder's personal locker. π«Ά
The very first time you call this function for a given MIX_AudioDecoder, an SDL_PropertiesID gets created β if necessary. Not me spawning property IDs on demand. π
The file-specific metadata you can peek at through this function is literally identical to the stuff you get from MIX_GetAudioProperties(). So if you want the deets, go read that function's documentation, okay? It's giving "same energy, different pointer." π
πΈ FUNCTION PARAMETERS πΈ
audiodecoderβ the audio decoder you're querying, bestie. That's the one.
β RETURN VALUE β
Returns a valid property ID on success, or 0 on failure. And like... if it fails, please call SDL_GetError() for more info, because guessing is not the vibe. π
π₯ THREAD SAFETY π₯
It is safe to call this function from any thread. Yes, even that one. Go off, multithreaded main character. β¨
π AVAILABILITY π
This function has been available since SDL_mixer 3.0.0. Iconic behavior, honestly.
π¦ SEE ALSO π¦
and that's the whole page, no cap πβ¨π
This lil' baddie lives in the SDL_mixer manual, straight outta SDL_mixer 3.2.4 β mwah, take care of her, iykyk π ππ
π¦ where this page comes from
- fedora 44: SDL3_mixer-doc 3.2.4-3.fc44 Β· Zlib AND (GPL-2.0-or-later OR LGPL-2.0-or-later)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms