From f00421f112ae2e99868889b8eeeb65587f5ddadc Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Tue, 21 Nov 2017 18:02:24 +0100 Subject: [PATCH] changed muteOnPause flag to be pauseOnBlur for BaseSoundManager --- v3/src/sound/BaseSoundManager.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/v3/src/sound/BaseSoundManager.js b/v3/src/sound/BaseSoundManager.js index 747775d3b..17348c502 100644 --- a/v3/src/sound/BaseSoundManager.js +++ b/v3/src/sound/BaseSoundManager.js @@ -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] *