---
name: "al_get_audio_depth_size"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_audio_depth_size/3alleg5"
---

# al\_get\_audio\_depth\_size(3alleg5)

Allegro 5 API

## NAME

al\_get\_audio\_depth\_size - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  size_t al_get_audio_depth_size(ALLEGRO_AUDIO_DEPTH depth)
  ```

## DESCRIPTION

Return the size of a sample, in bytes, for the given format. The format is one of the values listed under ALLEGRO\_AUDIO\_DEPTH(3alleg5).
