DOKK / manpages / debian 12 / allegro5-doc / al_get_num_audio_output_devices.3alleg5.en
al_get_num_audio_output_devices(3alleg5) al_get_num_audio_output_devices(3alleg5)

al_get_num_audio_output_devices - Allegro 5 API

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

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

5.2.8

return -1 for unsupported drivers.

Allegro reference manual