Function SDL_GetSilenceValueForFormat
pub unsafe extern "C" fn SDL_GetSilenceValueForFormat(
format: SDL_AudioFormat,
) -> i32
Available on crate feature
dep_sdl3
only.Expand description
Get the appropriate memset value for silencing an audio format.
The value returned by this function can be used as the second argument to
memset (or SDL_memset
) to set an audio buffer in a specific format to
silence.
§Parameters
format
: the audio data format to query.
§Return value
Returns a byte value that can be passed to memset.
§Thread safety
It is safe to call this function from any thread.
§Availability
This function is available since SDL 3.2.0.