volumeSFX(which channel, volume left, volume right)

From pinHeck Wiki
Revision as of 22:13, 21 September 2014 by Benheck (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sets specified channel to the desired left and right volume levels (0 - 100)

This command controls the volume of both sound effects and music (there is no "volumeMusic" command)

Channel listing:

0 : Sound effects / voice

1 : Sound effects / voice

2 : Sound effects / voice

3 : Music


Example:

volumeSFX(0, 75, 75);

Sets channel 0 to left and right values of 75.

volumeSFX(3, 35, 35);

Sets the music channel to a left and right value of 35.


The volume levels are usually reset at the beginning of each game. Typically I use 75 for sound FX and 35 for music. The default values can be changed in the game's system menu.

The volume setting is a starting point. If multiple sound effects are playing at the same time, the system automatically lowers the volume of each to avoid overmodulation. Volume levels go back to the set value after sound effect ends.