SDL_FlushAudioStream(3)
π NAME π
okay bestie, welcome to SDL_FlushAudioStream(3) π this one is all about telling the stream that you're done sending data, and anything being buffered should be converted/resampled and made available immediately. no cap. β¨
π SYNOPSIS π
#include <SDL3/SDL_audio.h>
bool SDL_FlushAudioStream(SDL_AudioStream *stream);
πΈ DESCRIPTION πΈ
so like, it is legal to add more data to a stream after flushing, but heads up bestie: there may be audio gaps in the output. π generally this is intended to signal the end of input, so the complete output becomes available. it's giving "finish line" energy. π
π¦ FUNCTION PARAMETERS π¦
streamβ the audio stream to flush. yes bestie, that's the one. π«Ά
β¨ RETURN VALUE β¨
returns true on success or false on failure; call SDL_GetError() for more information. π
π₯ THREAD SAFETY π₯
it is safe to call this function from any thread. periodt. π
π AVAILABILITY π
this function is available since SDL 3.2.0. iconic. β
π SEE ALSO π
SDL_PutAudioStreamData(3)β go read that one too, bestie. π
xoxo, this page came from Simple Directmedia Layer, version SDL 3.4.18, and the manual tag is SDL_FlushAudioStream(3). no date in the footer, just version energy and main character vibes. π π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms