sdlUnbindAudioStream function

void sdlUnbindAudioStream(
  1. Pointer<SdlAudioStream> stream
)

Unbind a single audio stream from its audio device.

This is a convenience function, equivalent to calling SDL_UnbindAudioStreams(&stream, 1).

\param stream an audio stream to unbind from a device.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_BindAudioStream

extern SDL_DECLSPEC void SDLCALL SDL_UnbindAudioStream(SDL_AudioStream *stream)

Implementation

void sdlUnbindAudioStream(Pointer<SdlAudioStream> stream) {
  final sdlUnbindAudioStreamLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlAudioStream> stream),
      void Function(Pointer<SdlAudioStream> stream)>('SDL_UnbindAudioStream');
  return sdlUnbindAudioStreamLookupFunction(stream);
}