Skip to content

Commit e75871a

Browse files
Added override property to HTML5AudioSoundManager
1 parent 9fc3aaa commit e75871a

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
@@ -4,6 +4,15 @@ var HTML5AudioSound = require('./HTML5AudioSound');
44
var HTML5AudioSoundManager = new Class({
55
Extends: BaseSoundManager,
66
initialize: function HTML5AudioSoundManager(game) {
7+
/**
8+
* Flag indicating whether for particular sound if there are no idle instances
9+
* of HTML5 Audio tag one of them should be stopped and used for succeeding playback
10+
* or if succeeding Phaser.Sound.HTML5AudioSound#play call should be ignored.
11+
*
12+
* @property {boolean} override
13+
* @default true
14+
*/
15+
this.override = true;
716
/**
817
* An array for keeping track of all the sounds
918
* that were paused when game lost focus.

0 commit comments

Comments
 (0)