This function is a legacy means of mixing audio.
Defined in SDL_audio.h
void SDL_MixAudio(Uint8 * dst, const Uint8 * src,
int volume); Uint32 len,
dst | the destination for the mixed audio |
src | the source audio buffer to be mixed |
len | the length of the audio buffer in bytes |
volume | ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME for full audio volume |
This function is equivalent to calling...
SDL_MixAudioFormat(dst, src, format, len, volume);
...where format
is the obtained format of the audio device from the legacy SDL_OpenAudio() function.
This function is available since SDL 2.0.0.
CategoryAPI, CategoryAPIFunction