SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]
(This function is part of SDL_mixer, a separate library from SDL.)

MIX_AudioDecoder

An opaque object that represents an audio decoder.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

typedef struct MIX_AudioDecoder MIX_AudioDecoder;

Remarks

Most apps won't need this, as SDL_mixer's usual interfaces will decode audio as needed. However, if one wants to decode an audio file into a memory buffer without playing it, this interface offers that.

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

Version

This struct is available since SDL_mixer 3.0.0.


CategoryAPI, CategoryAPIDatatype, CategorySDLMixer


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.