alSynSetPan alSynSetPan (function)

alSynSetPan, n_alSynSetPan

Sets the stereo pan position of the specified voice

Syntax

#include <libaudio.h>     /* libaudio.h */
void alSynSetPan(ALSynth *drvr, ALVoice *voice, ALPan pan);
#include <n_libaudio.h>     /* n_libaudio.h */
void n_alSynSetPan(           N_ALVoice *voice,    u8 pan);

Arguments

drvr
Pointer to the synthesizer driver

voice
Pointer to the voice

pan
Pan value

Description

alSynSetPan sets the position in the stereo field of the specified voice. A value of 0 indicates the sound should be panned completely to the left, and 127 indicates the sound should be panned completely to the right.

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

Note

Call alSynSetPan from within the AlVoiceHandler only.

See Also

alSynSetVol, alSynSetPitch, alSynSetFXMix, and alSynStartVoiceParams

Revision History

1999/04/30 Changed Format