Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

SDL_ClearAudioStream - Clear any pending data in the stream.

Availability

       This function is available since SDL 3.2.0.

Description

       This drops any queued data, so there will be nothing to read from the stream until more is added.

Function Parameters

stream the audio stream to clear.

Name

       SDL_ClearAudioStream - Clear any pending data in the stream.

Return Value

       for more information.

See Also

SDL_GetAudioStreamAvailable(3),          SDL_GetAudioStreamData(3),          SDL_GetAudioStreamQueued(3),
       SDL_PutAudioStreamData(3)

Simple Directmedia Layer                           SDL 3.2.20                            SDL_ClearAudioStream(3)

Synopsis

#include<SDL3/SDL_audio.h>boolSDL_ClearAudioStream(SDL_AudioStream*stream);

Thread Safety

       It is safe to call this function from any thread.

See Also