---
name: "voice_sweep_pan"
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_sweep_pan"
---

# voice\_sweep\_pan(3alleg)

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**(3alleg)](/voice_set_pan/3alleg.md)
