mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +00:00
changed muteOnPause flag to be pauseOnBlur for BaseSoundManager
This commit is contained in:
parent
526df860d9
commit
f00421f112
1 changed files with 5 additions and 6 deletions
|
@ -51,13 +51,12 @@ var BaseSoundManager = new Class({
|
|||
this.pan = 0;
|
||||
// TODO add fields for global spatialization options
|
||||
/**
|
||||
* Set to true to have all sound muted when the Phaser game
|
||||
* pauses (such as on loss of focus), or set to false to keep audio playing, regardless of
|
||||
* the game pause state. You may need to do this should you wish to control audio muting
|
||||
* via external DOM buttons or similar.
|
||||
* @property {boolean} muteOnPause
|
||||
* Flag indicating if sounds should be paused when game looses focus,
|
||||
* for instance when user switches tabs or to another program/app.
|
||||
*
|
||||
* @property {boolean} pauseOnBlur
|
||||
*/
|
||||
this.muteOnPause = true;
|
||||
this.pauseOnBlur = true;
|
||||
/**
|
||||
* [description]
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue