---
name: "detect_digi_driver"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/detect_digi_driver"
---

# detect\_digi\_driver(3alleg)

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**(3alleg)](/install_sound/3alleg.md), [**reserve\_voices**(3alleg)](/reserve_voices/3alleg.md)
