---
name: "detect_digi_driver"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/detect_digi_driver/3alleg4"
---

# detect\_digi\_driver(3alleg4)

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

## NAME

detect\_digi\_driver - Detects whether the specified digital sound device is available. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**int detect\_digi\_driver(int driver\_id);**

## DESCRIPTION

Detects whether the specified digital sound device is available. This function must be called \_before\_ install\_sound().

## RETURN VALUE

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

## SEE ALSO

**install\_sound**(3alleg4), **reserve\_voices**(3alleg4)
