    Function

    nuAuSndPlayerSetPan (Macro)

Syntax

    void nuAuSndPlayerSetPan(ALPan pan)

Arguments

pan is the pan position (0-127)

Return Value
None

Explanation
Set the pan position of the sound object for the sound player. This is used immediately after the nuAuSndPlayerPlay function or after specifying the sound object using nuAuSndPlayerSetSound.

A 0 indicates a position all the way to the left, 64 indicates a center position and 127 indicates a position all the way to the right. Please note that the pan value here will be added to the pan value which is already attached to the sound in the sound bank.

If the sound is currently being played back, the pan position is modified. If the sound is not being played back, it affects the pan position of sound when played back in the future.

See Also
alSndpSetPan