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 <optional>
false

Loop when it finished playing?

Source code: sound/Sound.js (Line 743)
doc_phaser
2017-02-14 11:09:57
Comments
Leave a Comment

Please login to continue.