Function SDL_MixAudio

pub unsafe extern "C" fn SDL_MixAudio(
    dst: *mut u8,
    src: *const u8,
    len: u32,
    volume: i32,
)
Available on crate feature dep_sdl2 only.
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