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

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

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.
