---
name: "voice_ramp_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_ramp_volume"
---

# voice\_ramp\_volume(3alleg)

Starts a volume ramp for a voice. Allegro game programming library.

## NAME

voice\_ramp\_volume - Starts a volume ramp for a voice. Allegro game programming library.

## SYNOPSIS

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

**void voice\_ramp\_volume(int voice, int time, int endvol);**

## DESCRIPTION

Starts a volume ramp (crescendo or diminuendo) from the current volume to  the specified ending volume, lasting for time milliseconds. The volume is a value in the range 0-255.

## SEE ALSO

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