MIX_GetTaggedTracks(3)
β¨ MIX_GetTaggedTracks β¨
okay so bestie, this is a page from the SDL_mixer3 function manual, and today's main character is MIX_GetTaggedTracks β the one that goes "hey mixer, gimme every track that's rocking this specific tag" π
πΈ NAME πΈ
MIX_GetTaggedTracks β get all tracks with a specific tag. that's it, that's the vibe π
π¦ SYNOPSIS π¦
#include <SDL3_mixer/SDL_mixer.h>
MIX_Track ** MIX_GetTaggedTracks(MIX_Mixer *mixer, const char *tag, int *count);
π DESCRIPTION π
so like. you ask for a tag, you get back all the tracks wearing that tag. simple, iconic, no notes.
heads up though: tracks are not provided in any guaranteed order. it's giving chaos, honestly. if you need them sorted, that's on you, bestie π
π«Ά FUNCTION PARAMETERS π«Ά
mixerβ the mixer to query. the one you're interrogating π΅οΈββοΈtagβ the tag to search. your search term, your roman empire, your keyword β¨countβ a pointer that gets filled in with the number of tracks returned. it can beNULLif you don't care, and honestly valid of you π
π₯ RETURN VALUE π₯
Returns an array of the tracks, NULL-terminated β or NULL on failure, in which case call SDL_GetError() for more info because we deserve answers π€
π¨ IMPORTANT: the returned pointer should be freed with SDL_free() when it is no longer needed. do not ghost that memory, she will remember π
π THREAD SAFETY π
It is safe to call this function from any thread. yes queen, take it everywhere, she's chill π
β AVAILABILITY β
This function is available since SDL_mixer 3.0.0. vintage but make it current π
and that's the whole page, no cap. this was the MIX_GetTaggedTracks man page from the SDL_mixer manual, version SDL_mixer 3.2.4. mwah, go free that array, ily π«Άπ
π¦ 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