Man page - sdl_getsilencevalueforformat(3)

Packages contas this manual

Manual

SDL_GetSilenceValueForFormat(3) SDL3 FUNCTIONS SDL_GetSilenceValueForFormat(3)

SDL_GetSilenceValueForFormat - Get the appropriate memset value for silencing an audio format.

Defined in SDL3/SDL_audio.h

#include "SDL3/SDL.h"
int SDL_GetSilenceValueForFormat(SDL_AudioFormat 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.

the audio data format to query.

Returns a byte value that can be passed to memset.

It is safe to call this function from any thread.

This function is available since SDL 3.2.0.

SDL 3.2.10 Simple Directmedia Layer