- Documentation
- Client functions
- setSoundPan
Function
setSoundPan
Sets the sound's balance between speakers: -1 left, 0 centre, 1 right.
Syntax
bool setSoundPan(sound theSound, float pan)Arguments
theSoundsound- The sound.
panfloat- A value from -1 to 1.
Returns
true on success.
Example
setSoundPan(sound, -1)
Notes
Does not work with playSound sounds. In the current version the function does not accept sound elements and returns false.