SDL_UnbindAudioStream(3)

πŸ’– SDL_UnbindAudioStream(3) πŸ’–

okay bestie, welcome to the SDL3 FUNCTIONS corner of the manual, and today's main character is SDL_UnbindAudioStream β€” she's a little function with big "let go of what no longer serves you" energy ✨


🌸 NAME 🌸

SDL_UnbindAudioStream β€” unbind a single audio stream from its audio device. one stream. that's it. she's not doing a whole crowd, she's doing you 🫢


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_audio.h>

void SDL_UnbindAudioStream(SDL_AudioStream *stream);

no return value, no drama, just vibes πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this one is a convenience function, okay? it's equivalent to calling:

SDL_UnbindAudioStreams(&stream, 1);

literally the same thing, just wrapped up cute for when you only have one stream to deal with and you don't wanna write out an array. one stream, one call, done, periodt πŸ‘‘


✨ FUNCTION PARAMETERS ✨

  • stream β€” an audio stream to unbind from a device. and yes bestie, this one can be NULL. no cap, the docs said it, so don't stress πŸ’€

🧚 THREAD SAFETY 🧚

it is safe to call this function from any thread. any of them. all of them. go wild, she's chill 🌈


⭐ AVAILABILITY ⭐

this function has been available since SDL 3.2.0. so if you're on something older... no she's not there yet, sorry babe 😭


πŸ’œ SEE ALSO πŸ’œ


Simple Directmedia Layer Β· SDL 3.4.18 β€” that's the whole page bestie, thanks for reading, mwah πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from