---
name: "voice_get_volume"
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_volume"
---

# voice\_get\_volume(3alleg)

Returns the current volume of the voice. Allegro game programming library.

## NAME

voice\_get\_volume - Returns the current volume of the voice. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

Returns the current volume of the voice, range 0-255.  Otherwise it returns -1 if that cannot be determined (because it has finished or been preempted by a different sound).

## SEE ALSO

[**voice\_set\_volume**(3alleg)](/voice_set_volume/3alleg.md)
