---
name: "voice_sweep_frequency"
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_sweep_frequency/3alleg4"
---

# voice\_sweep\_frequency(3alleg4)

Starts a frequency sweep for a voice. Allegro game programming library.

## NAME

voice\_sweep\_frequency - Starts a frequency sweep for a voice. Allegro game programming library.

## SYNOPSIS

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

**void voice\_sweep\_frequency(int voice, int time, int endfreq);**

## DESCRIPTION

Starts a frequency sweep (glissando) from the current pitch to the  specified ending pitch, lasting for time milliseconds.

## SEE ALSO

**voice\_set\_frequency**(3alleg4)
