MIX_AudioDecoder(3type)

πŸ“¦
version 3.2.4 Β· 2 versions
, in fedora 44

πŸ’– NAME πŸ’–

MIX_AudioDecoder β€” bestie, it's an opaque object that represents an audio decoder. That's the whole vibe. 🎧


✨ SYNOPSIS ✨

#include <SDL3_mixer/SDL_mixer.h>

typedef struct MIX_AudioDecoder MIX_AudioDecoder;

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: most apps are literally never gonna need this, because SDL_mixer's usual interfaces will decode audio as needed all on their own. no cap, they handle it. πŸ’…

But β€” and this is the fun part β€” if you wanna decode an audio file into a memory buffer without playing it? Then this interface offers exactly that. it's giving "i just want the data, not the concert." πŸŽ€

These objects are created with MIX_CreateAudioDecoder() or MIX_CreateAudioDecoder_IO(), and then you can use MIX_DecodeAudio() to retrieve the raw PCM data. periodt. 🫢

heads up bestie: the object is opaque, so you don't peek inside it. you use the functions, that's the whole relationship. πŸ™ˆ

🌈 AVAILABILITY 🌈

This struct is available since SDL_mixer 3.0.0. she's not new new, but she's iconic. πŸ‘‘


k that's the page!! this was the MIX_AudioDecoder(3type) page from the SDL_mixer3 DATATYPES manual, and it's part of SDL_mixer 3.2.4. thanks for reading, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from