Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Although setVolume and setBalance seem to provide a lot of control over a sound, you can go even further. By creating sound transform objects, you can precisely control stereo sounds—which sound channel comes out of which speaker.
In a typical sound played in a typical way, the left channel's sound comes out of the left speaker, and the right channel's sound comes out of the right speaker.