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_Audio

An opaque object that represents audio data.

Header File

Defined in <SDL3_mixer/SDL_mixer.h>

Syntax

typedef struct MIX_Audio MIX_Audio;

Remarks

Generally you load audio data (in whatever file format) into SDL_mixer with MIX_LoadAudio() or one of its several variants, producing a MIX_Audio object.

A MIX_Audio represents static audio data; it could be background music, or maybe a laser gun sound effect. It is loaded into RAM and can be played multiple times, possibly on different tracks at the same time.

Unlike most other objects, MIX_Audio objects can be shared between mixers.

Version

This datatype 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.