sdlGetSilenceValueForFormat function
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.
\param format the audio data format to query. \returns a byte value that can be passed to memset.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC int SDLCALL SDL_GetSilenceValueForFormat(SDL_AudioFormat format)
Implementation
int sdlGetSilenceValueForFormat(int format) {
final sdlGetSilenceValueForFormatLookupFunction = libSdl3.lookupFunction<
Int32 Function(Int32 format),
int Function(int format)>('SDL_GetSilenceValueForFormat');
return sdlGetSilenceValueForFormatLookupFunction(format);
}