BASS

BASS_ATTRIB_PAN attribute


The panning/balance position of a channel.

BASS_ChannelSetAttribute(
    DWORD handle,
    BASS_ATTRIB_PAN,
    float pan
);

Parameters

handleThe channel handle.
panThe pan position... -1 (full left) to +1 (full right), 0 = centre.

Remarks

This attribute applies to playback of the channel, and does not affect the channel's sample data, so it has no real effect on decoding channels. It is still adjustable then though, so that it can be used by the BASSmix add-on and anything else that wants to use it.

It is not possible to set the pan position of a 3D channel.

Platform-specific

On Windows, this attribute has no effect when speaker assignment is used, except on Windows Vista and newer with the BASS_CONFIG_VISTA_SPEAKERS config option enabled. Balance control could be implemented via a DSP function instead.

See also

BASS_ChannelGetAttribute, BASS_ChannelSetAttribute, BASS_ChannelSlideAttribute, BASS_CONFIG_CURVE_PAN