---
name: "al_get_num_audio_output_devices"
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_num_audio_output_devices"
---

# al\_get\_num\_audio\_output\_devices(3)

Allegro 5 API

## NAME

al\_get\_num\_audio\_output\_devices - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro_audio.h>
  int al_get_num_audio_output_devices()
  ```

## DESCRIPTION

Get the number of available audio output devices on the system.

## SINCE

5\.2.8

return -1 for unsupported drivers.
