Sound#game

game : Phaser.Game A reference to the currently running Game. Source code: sound/Sound.js (Line 27)

Sound#gainNode

gainNode : Object The gain node in a Web Audio system. Source code: sound/Sound.js (Line 170)

Sound#fadeTween

fadeTween : Phaser.Tween The tween that fades the audio, set via Sound.fadeIn and Sound.fadeOut. Source code: sound/Sound.js (Line 126)

Sound#fadeTo()

fadeTo(duration, volume) Fades the volume of this Sound from its current value to the given volume over the duration specified.At the end of the fade Sound.onFadeComplete is dispatched with this Sound object as the first parameter,and the final volume (volume) as the second parameter. Parameters Name Type Argument Default Description duration number <optional> 1000 The time in milliseconds during which the Sound should fade out. volume number <optional> The volume which

Sound#fadeOut()

fadeOut(duration) Decreases the volume of this Sound from its current value to 0 over the duration specified.At the end of the fade Sound.onFadeComplete is dispatched with this Sound object as the first parameter,and the final volume (0) as the second parameter. Parameters Name Type Argument Default Description duration number <optional> 1000 The time in milliseconds over which the Sound should fade out. Source code: sound/Sound.js (Line 952)

Sound#fadeIn()

fadeIn(duration, loop, marker) Starts this sound playing (or restarts it if already doing so) and sets the volume to zero.Then increases the volume from 0 to 1 over the duration specified. At the end of the fade Sound.onFadeComplete is dispatched with this Sound object as the first parameter,and the final volume (1) as the second parameter. Parameters Name Type Argument Default Description duration number <optional> 1000 The time in milliseconds over which the Sound should fade in

Sound#externalNode

externalNode : Object If defined this Sound won't connect to the SoundManager master gain node, but will instead connect to externalNode. Source code: sound/Sound.js (Line 160)

Sound#durationMS

durationMS : number The duration of the current sound marker in ms. Source code: sound/Sound.js (Line 83)

Sound#duration

duration : number The duration of the current sound marker in seconds. Source code: sound/Sound.js (Line 78)

Sound#destroy()

destroy(remove) Destroys this sound and all associated events and removes it from the SoundManager. Parameters Name Type Argument Default Description remove boolean <optional> true If true this Sound is automatically removed from the SoundManager. Source code: sound/Sound.js (Line 1035)