Function sdl2_sys::SDL_MixAudio
source · pub unsafe extern "C" fn SDL_MixAudio(
dst: *mut Uint8,
src: *const Uint8,
len: Uint32,
volume: c_int,
)
Expand description
This function is a legacy means of mixing audio.
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.
\param dst the destination for the mixed audio \param src the source audio buffer to be mixed \param len the length of the audio buffer in bytes \param volume ranges from 0 - 128, and should be set to SDL_MIX_MAXVOLUME for full audio volume
\since This function is available since SDL 2.0.0.
\sa SDL_MixAudioFormat