---
name: "voice_get_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_get_position"
---

# voice\_get\_position(3alleg)

Returns the current position of a voice. Allegro game programming library.

## NAME

voice\_get\_position - Returns the current position of a voice. Allegro game programming library.

## SYNOPSIS

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

**int voice\_get\_position(int voice);**

## DESCRIPTION

Returns the current position of a voice, in sample units, or -1 if it has  finished playing.

## SEE ALSO

[**voice\_set\_position**(3alleg)](/voice_set_position/3alleg.md)
