sdlUnbindAudioStreams function

void sdlUnbindAudioStreams(
  1. Pointer<Pointer<SdlAudioStream>> streams,
  2. int numStreams
)

Unbind a list of audio streams from their audio devices.

The streams being unbound do not all have to be on the same device. All streams on the same device will be unbound atomically (data will stop flowing through all unbound streams on the same device at the same time).

Unbinding a stream that isn't bound to a device is a legal no-op.

\param streams an array of audio streams to unbind. \param num_streams number streams listed in the streams array.

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

\since This function is available since SDL 3.1.3.

\sa SDL_BindAudioStreams

extern SDL_DECLSPEC void SDLCALL SDL_UnbindAudioStreams(SDL_AudioStream **streams, int num_streams)

Implementation

void sdlUnbindAudioStreams(
    Pointer<Pointer<SdlAudioStream>> streams, int numStreams) {
  final sdlUnbindAudioStreamsLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<Pointer<SdlAudioStream>> streams, Int32 numStreams),
      void Function(Pointer<Pointer<SdlAudioStream>> streams,
          int numStreams)>('SDL_UnbindAudioStreams');
  return sdlUnbindAudioStreamsLookupFunction(streams, numStreams);
}