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

# voice\_set\_position(3alleg)

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**(3alleg)](/voice_get_position/3alleg.md), [**voice\_set\_playmode**(3alleg)](/voice_set_playmode/3alleg.md)
