From 36c7084e017155055fef3d73035d8331c6b6bd23 Mon Sep 17 00:00:00 2001 From: photonstorm Date: Tue, 5 May 2015 10:59:54 +0100 Subject: [PATCH] Adjusting property order. --- src/sound/SoundManager.js | 84 +++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/src/sound/SoundManager.js b/src/sound/SoundManager.js index e203d213e..7c701008e 100644 --- a/src/sound/SoundManager.js +++ b/src/sound/SoundManager.js @@ -48,6 +48,48 @@ Phaser.SoundManager = function (game) { */ this.onUnMute = new Phaser.Signal(); + /** + * @property {AudioContext} context - The AudioContext being used for playback. + * @default + */ + this.context = null; + + /** + * @property {boolean} usingWebAudio - True the SoundManager and device are both using Web Audio. + * @readonly + */ + this.usingWebAudio = false; + + /** + * @property {boolean} usingAudioTag - True the SoundManager and device are both using the Audio tag instead of Web Audio. + * @readonly + */ + this.usingAudioTag = false; + + /** + * @property {boolean} noAudio - True if audio been disabled via the PhaserGlobal (useful if you need to use a 3rd party audio library) or the device doesn't support any audio. + * @default + */ + this.noAudio = false; + + /** + * @property {boolean} connectToMaster - Used in conjunction with Sound.externalNode this allows you to stop a Sound node being connected to the SoundManager master gain node. + * @default + */ + this.connectToMaster = true; + + /** + * @property {boolean} touchLocked - true if the audio system is currently locked awaiting a touch event. + * @default + */ + this.touchLocked = false; + + /** + * @property {number} channels - The number of audio channels to use in playback. + * @default + */ + this.channels = 32; + /** * @property {boolean} _codeMuted - Internal mute tracking var. * @private @@ -106,48 +148,6 @@ Phaser.SoundManager = function (game) { */ this._watchContext = null; - /** - * @property {AudioContext} context - The AudioContext being used for playback. - * @default - */ - this.context = null; - - /** - * @property {boolean} usingWebAudio - True the SoundManager and device are both using Web Audio. - * @readonly - */ - this.usingWebAudio = false; - - /** - * @property {boolean} usingAudioTag - True the SoundManager and device are both using the Audio tag instead of Web Audio. - * @readonly - */ - this.usingAudioTag = false; - - /** - * @property {boolean} noAudio - True if audio been disabled via the PhaserGlobal (useful if you need to use a 3rd party audio library) or the device doesn't support any audio. - * @default - */ - this.noAudio = false; - - /** - * @property {boolean} connectToMaster - Used in conjunction with Sound.externalNode this allows you to stop a Sound node being connected to the SoundManager master gain node. - * @default - */ - this.connectToMaster = true; - - /** - * @property {boolean} touchLocked - true if the audio system is currently locked awaiting a touch event. - * @default - */ - this.touchLocked = false; - - /** - * @property {number} channels - The number of audio channels to use in playback. - * @default - */ - this.channels = 32; - }; Phaser.SoundManager.prototype = {