---
name: "voice_set_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_set_pan"
---

# voice\_set\_pan(3alleg)

Sets the pan position. Allegro game programming library.

## NAME

voice\_set\_pan - Sets the pan position. Allegro game programming library.

## SYNOPSIS

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

**void voice\_set\_pan(int voice, int pan);**

## DESCRIPTION

Sets the pan position, ranging from 0 (left) to 255 (right).

## SEE ALSO

[**voice\_get\_pan**(3alleg)](/voice_get_pan/3alleg.md), [**voice\_sweep\_pan**(3alleg)](/voice_sweep_pan/3alleg.md)
