AudioSprite#play()

play(marker, volume) → {Phaser.Sound}

Play a sound with the given name.

Parameters
Name Type Argument Default Description
marker string <optional>

The name of sound to play

volume number <optional>
1

Volume of the sound you want to play. If none is given it will use the volume given to the Sound when it was created (which defaults to 1 if none was specified).

Returns

This sound instance.

Source code: sound/AudioSprite.js (Line 77)
doc_phaser
2017-02-14 10:36:22
Comments
Leave a Comment

Please login to continue.