SDL_GetSilenceValueForFormat

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.

extern (C) nothrow @nogc extern
int
SDL_GetSilenceValueForFormat

Parameters

format SDL_AudioFormat

the audio data format to query.

Return Value

Type: int

a byte value that can be passed to memset.

Threadsafety: It is safe to call this function from any thread.

Meta