Audio¶
Namespace Audio for global sound and music. Component-level audio functions are in
Component → Audio.
Audio.playSound¶
volume defaults to 1, loop to false.
Audio.playMusic¶
Audio.stopSound¶
Swallows errors if the asset is missing.
Audio.stopMusic¶
Swallows errors if the asset is missing.
Audio.stopAllSounds¶
Audio.stopAllMusic¶
Audio.setSoundVolume¶
Audio.setMusicVolume¶
Audio.isSoundPlaying¶
Audio.isMusicPlaying¶
Volumes are clamped to 0..1.