Sound#pausedPosition

pausedPosition : number The position the sound had reached when it was paused. Source code: sound/Sound.js (Line 104)

Sound#pausedTime

pausedTime : number The game time at which the sound was paused. Source code: sound/Sound.js (Line 109)

Sound#pendingPlayback

[readonly] pendingPlayback : boolean true if the sound file is pending playback Source code: sound/Sound.js (Line 132)

Sound#play()

play(marker, position, volume, loop, forceRestart) → {Phaser.Sound} Play this sound, or a marked section of it. Parameters Name Type Argument Default Description marker string <optional> '' If you want to play a marker then give the key here, otherwise leave blank to play the full sound. position number <optional> 0 The starting position to play the sound from - this is ignored if you provide a marker. volume number <optional> 1 Volume of the sound you want t

Sound#position

position : number The position of the current sound marker. Source code: sound/Sound.js (Line 88)

Sound#removeMarker()

removeMarker(name) Removes a marker from the sound. Parameters Name Type Description name string The key of the marker to remove. Source code: sound/Sound.js (Line 377)

Sound#restart()

restart(marker, position, volume, loop) Restart the sound, or a marked section of it. Parameters Name Type Argument Default Description marker string <optional> '' If you want to play a marker then give the key here, otherwise leave blank to play the full sound. position number <optional> 0 The starting position to play the sound from - this is ignored if you provide a marker. volume number <optional> 1 Volume of the sound you want to play. loop boolean &l

Sound#resume()

resume() Resumes the sound. Source code: sound/Sound.js (Line 782)

Sound#Sound

new Sound(game, key, volume, loop) The Sound class constructor. Parameters Name Type Argument Default Description game Phaser.Game Reference to the current game instance. key string Asset key for the sound. volume number <optional> 1 Default value for the volume, between 0 and 1. loop boolean <optional> false Whether or not the sound will loop. Source code: sound/Sound.js (Line 17)

Sound#startTime

startTime : number The time the Sound starts at (typically 0 unless starting from a marker) Source code: sound/Sound.js (Line 68)