SoundManager#play()

play(key, volume, loop) → {Phaser.Sound}

Adds a new Sound into the SoundManager and starts it playing.

Parameters
Name Type Argument Default Description
key string

Asset key for the sound.

volume number <optional>
1

Default value for the volume.

loop boolean <optional>
false

Whether or not the sound will loop.

Returns

The new sound instance.

Source code: sound/SoundManager.js (Line 631)
doc_phaser
2017-02-14 11:10:07
Comments
Leave a Comment

Please login to continue.