# NNS_SndPlayerSetTrackPan

## C Specification

      #include <nnsys/snd.h>

      void NNS_SndPlayerSetTrackPan(
      NNSSndHandle*   handle,
      u16 trackBitMask,
      int pan );

## Arguments

`handle` | The sound handle pointer.
`trackBitMask` | This is the track bit mask.
`pan` | Change value for pan (position). Takes a value between -128 and 127.

## Return Values

None.

## Description

This function changes the pan for a sequence track.

The track pan of the sequence bound to the Sound Handle is changed. This function does not perform any action if the stream handle is invalid.

`trackBitMask` specifies the track to be set. The tracks are identified from the lower bit in sequence: Track 0, Track 1, Track 2 .... All tracks with enabled bits will have their pan changed. For example, to change the pan of Track 2 and Track 5, use (1 << 2) | (1 << 5); i.e., 0x0024.

`pan` is added to the original pan value. When pan is positive, motion is to the right; when pan is negative, motion is to the left. (Does not accumulate each time the function is called)

## See Also

None.

## Revision History

06/01/2004 Revised to state that the Sound Handle binds to the sequence.

04/01/2004 Initial version.