logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GetSilenceValueForFormat(3)

Description

       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.

Function Parameters

format the audio data format to query.

Name

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

Return Value

       Returns a byte value that can be passed to memset.

Synopsis

#include<SDL3/SDL_audio.h>intSDL_GetSilenceValueForFormat(SDL_AudioFormatformat);

Thread Safety

       It is safe to call this function from any thread.

See Also