---
name: "al_get_channel_count"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_channel_count"
---

# al\_get\_channel\_count(3)

Allegro 5 API

## NAME

al\_get\_channel\_count - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  size_t al_get_channel_count(ALLEGRO_CHANNEL_CONF conf)
  ```

## DESCRIPTION

Return the number of channels for the given channel configuration, which is one of the values listed under [ALLEGRO\_CHANNEL\_CONF(3)](/ALLEGRO_CHANNEL_CONF/3.md).
