---
name: "SDL_AUDIO_BITSIZE"
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_AUDIO_BITSIZE"
---

# SDL\_AUDIO\_BITSIZE(3)

Retrieve the size, in bits, from an SDL\_AudioFormat .

## NAME

SDL\_AUDIO\_BITSIZE - Retrieve the size, in bits, from an  **SDL\_AudioFormat** .

## HEADER FILE

Defined in SDL3/SDL\_audio.h

## SYNOPSIS

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

**#define SDL\_AUDIO\_BITSIZE(x)         ((x) & SDL\_AUDIO\_MASK\_BITSIZE)**

## DESCRIPTION

For example, **SDL\_AUDIO\_BITSIZE(SDL\_AUDIO\_S16)** returns 16.

## RETURN VALUE

Returns data size in bits.

## THREAD SAFETY

It is safe to call this macro from any thread.

## AVAILABILITY

This macro is available since SDL 3.2.0.
