audSetChannelPan

Sets the stereo panning of a playing channel. Takes channel (channel handle), pan (pan value -1.0 to 1.0). Returns nothing.

Audio

Parameters & Returns

Parameters

channel Int
pan Double

Returns

Void

Quick Summary

Sets the stereo panning of a playing channel. Takes channel (channel handle), pan (pan value -1.0 to 1.0). Returns nothing.

Technical Exegesis...

Sets the stereo pan position for the specified channel. Pan ranges from -1.0 (full left) through 0.0 (center) to 1.0 (full right).

Does nothing if the channel handle is invalid or <= 0. Changes take effect immediately during playback. Use panning to position sounds in stereo space for directional audio effects or positional cues.

Example

Example.bam
audSetChannelPan(channel, pan)