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

# voice\_set\_position(3alleg4)

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

## NAME

voice\_set\_position - Sets the position of a voice. Allegro game programming library.

## SYNOPSIS

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

**void voice\_set\_position(int voice, int position);**

## DESCRIPTION

Sets the position of a voice, in sample units.

## SEE ALSO

**voice\_get\_position**(3alleg4), **voice\_set\_playmode**(3alleg4)
