---
name: "voice_sweep_pan"
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_pan/3alleg4"
---

# voice\_sweep\_pan(3alleg4)

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

## NAME

voice\_sweep\_pan - Starts a pan sweep for a voice. Allegro game programming library.

## SYNOPSIS

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

**void voice\_sweep\_pan(int voice, int time, int endpan);**

## DESCRIPTION

Starts a pan sweep (left \<-\> right movement) from the current position to the specified ending position, lasting for time milliseconds.

## SEE ALSO

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