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)
Please login to continue.