Skip to content

Commit 7063085

Browse files
committed
Updated jsdocs. Fix phaserjs#4200
1 parent 9c5e327 commit 7063085

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ var HTML5AudioSound = require('./HTML5AudioSound');
1212

1313
/**
1414
* HTML5 Audio implementation of the Sound Manager.
15+
*
16+
* Note: To play multiple instances of the same HTML5 Audio sound, you need to provide an `instances` value when
17+
* loading the sound with the Loader:
18+
*
19+
* ```javascript
20+
* this.load.audio('explosion', 'explosion.mp3', {
21+
* instances: 2
22+
* });
23+
* ```
1524
*
1625
* @class HTML5AudioSoundManager
1726
* @extends Phaser.Sound.BaseSoundManager

0 commit comments

Comments
 (0)