Impact

Defined in Module impact.sound, inherits from ig.Class

Description

The sound managers takes care of loading sounds and providing them for ig.Music and ig.Sound instances. An instance of the sound manager is automatically created at ig.soundManager (lowercase) by the ig.main() function.

Properties

.channels

This property has been removed in 1.17 - use ig.Sound.channels instead

.format

The sound format that is used by the current browser. Either 'mp3' or 'ogg'.

The browsers capabilities are automatically detected and the format is set accordingly. When both are supported, the 'mp3' format is favored, as Chrome seems to have more issues with 'ogg'.

If you want to set this manually, you have to do so before loading any sound file.

.volume

Global volume for all ig.Sound instances from 0.0 to 1.0. The default is 1.