alSndpSetPan alSndpSetPan (function)

alSndpSetPan, n_alSndpSetPan

Sets the pan position of the current target sound

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSndpSetPan(ALSndPlayer *sndp, ALPan pan);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSndpSetPan(                 ALPan pan);

Arguments

sndp
Pointer to a sound player

pan
pan position, which is a value between 0 (panned completely to the left) and 127 (panned completely to the right). Note that the value specified here will be added to the pan value associated with the sound in the sound bank.

Description

alSndpSetPan sets the pan value of the current target sound. Call alSndpSetSound to set the target sound. If the sound is playing, the pan will be adjusted. If the sound is not playing, this call will affect the pan position of the sound when it is played.

For details on n_audio library, see "Chapter 28: n_audio library" in the N64 Programming Manual.

See Also

alSndpSetVol, alSndpSetPitch, and alSndpSetFXMix

Revision History

1999/04/30 Changed Format