audSetMusicPan

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

Audio

Parameters & Returns

Parameters

musicChannel Int
pan Double

Returns

Void

Quick Summary

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

Technical Exegesis...

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

Does nothing if the handle is invalid or <= 0. Pass the handle returned by audPlayMusic. Changes take effect immediately during playback.

Example

Example.bam
audSetMusicPan(channel, pan)