---
name: "SDL_UnlockAudioStream"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_UnlockAudioStream"
---

# SDL\_UnlockAudioStream(3)

Unlock an audio stream for serialized access.

## NAME

SDL\_UnlockAudioStream - Unlock an audio stream for serialized access.

## HEADER FILE

Defined in SDL3/SDL\_audio.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_UnlockAudioStream(SDL\_AudioStream \*stream);**

## DESCRIPTION

This unlocks an audio stream after a call to

**SDL\_LockAudioStream** .

## FUNCTION PARAMETERS

- *stream*

  the audio stream to unlock.

## RETURN VALUE

Returns true on success or false on failure; call

**SDL\_GetError** () for more information.

## THREAD SAFETY

You should only call this from the same thread that previously called

**SDL\_LockAudioStream** .

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_LockAudioStream**(3)](/SDL_LockAudioStream/3.md)
