DOKK / manpages / debian 10 / allegro4-doc / detect_digi_driver.3alleg4.en
detect_digi_driver(3alleg4) Allegro manual detect_digi_driver(3alleg4)

detect_digi_driver - Detects whether the specified digital sound device is available. Allegro game programming library.

#include <allegro.h>

int detect_digi_driver(int driver_id);

Detects whether the specified digital sound device is available. This function must be called _before_ install_sound().

Returns the maximum number of voices that the driver can provide, or zero if the hardware is not present.

install_sound(3alleg4), reserve_voices(3alleg4)

version 4.4.2 Allegro