---
name: "voice_set_priority"
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/voice_set_priority/3alleg4"
---

# voice\_set\_priority(3alleg4)

Sets the priority of a voice. Allegro game programming library.

## NAME

voice\_set\_priority - Sets the priority of a voice. Allegro game programming library.

## SYNOPSIS

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

**void voice\_set\_priority(int voice, int priority);**

## DESCRIPTION

Sets the priority of a voice (range 0-255). This is used to decide which  voices should be chopped off, if you attempt to play more than the  sound card driver can handle.

## SEE ALSO
