Sets or returns master stereo balance.
Syntax
Balance position
position = Balance()
Description
BALANCE moves the whole sfxlib mix left or right. It is a master stereo control, so it affects the combined output rather than one channel.
A centered value keeps the left and right sides even. Moving the value in one direction makes the whole mix lean toward that speaker. This can be useful for accessibility, diagnostics, or simple stereo effects.
Calling BALANCE as a function returns the current master balance.
Example
balance 0.0
Print "balance="; balance()
Platform Differences
- Use PAN when only one channel should move left or right.
Differences from QB
`t- New to FreeBASIC.
See also