mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Added global play method that enables playing sounds on the fly
This commit is contained in:
parent
1c896ba1f7
commit
912a737561
1 changed files with 1 additions and 8 deletions
|
@ -44,13 +44,6 @@ var BaseSoundManager = new Class({
|
|||
* @property {number} detune
|
||||
*/
|
||||
this.detune = 0;
|
||||
/**
|
||||
* Global amount of panning to apply.
|
||||
* The value can range between -1 (full left pan) and 1 (full right pan).
|
||||
* @property {number} pan
|
||||
*/
|
||||
this.pan = 0;
|
||||
// TODO add fields for global spatialization options
|
||||
/**
|
||||
* Flag indicating if sounds should be paused when game looses focus,
|
||||
* for instance when user switches tabs or to another program/app.
|
||||
|
@ -119,7 +112,7 @@ var BaseSoundManager = new Class({
|
|||
}
|
||||
return sound;
|
||||
},
|
||||
addOscillator: NOOP,
|
||||
play: NOOP,
|
||||
remove: NOOP,
|
||||
removeByKey: NOOP,
|
||||
pauseAll: NOOP,
|
||||
|
|
Loading…
Reference in a new issue