Skip to content

Commit 36c7084

Browse files
committed
Adjusting property order.
1 parent adad60f commit 36c7084

1 file changed

Lines changed: 42 additions & 42 deletions

File tree

src/sound/SoundManager.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,48 @@ Phaser.SoundManager = function (game) {
4848
*/
4949
this.onUnMute = new Phaser.Signal();
5050

51+
/**
52+
* @property {AudioContext} context - The AudioContext being used for playback.
53+
* @default
54+
*/
55+
this.context = null;
56+
57+
/**
58+
* @property {boolean} usingWebAudio - True the SoundManager and device are both using Web Audio.
59+
* @readonly
60+
*/
61+
this.usingWebAudio = false;
62+
63+
/**
64+
* @property {boolean} usingAudioTag - True the SoundManager and device are both using the Audio tag instead of Web Audio.
65+
* @readonly
66+
*/
67+
this.usingAudioTag = false;
68+
69+
/**
70+
* @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.
71+
* @default
72+
*/
73+
this.noAudio = false;
74+
75+
/**
76+
* @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.
77+
* @default
78+
*/
79+
this.connectToMaster = true;
80+
81+
/**
82+
* @property {boolean} touchLocked - true if the audio system is currently locked awaiting a touch event.
83+
* @default
84+
*/
85+
this.touchLocked = false;
86+
87+
/**
88+
* @property {number} channels - The number of audio channels to use in playback.
89+
* @default
90+
*/
91+
this.channels = 32;
92+
5193
/**
5294
* @property {boolean} _codeMuted - Internal mute tracking var.
5395
* @private
@@ -106,48 +148,6 @@ Phaser.SoundManager = function (game) {
106148
*/
107149
this._watchContext = null;
108150

109-
/**
110-
* @property {AudioContext} context - The AudioContext being used for playback.
111-
* @default
112-
*/
113-
this.context = null;
114-
115-
/**
116-
* @property {boolean} usingWebAudio - True the SoundManager and device are both using Web Audio.
117-
* @readonly
118-
*/
119-
this.usingWebAudio = false;
120-
121-
/**
122-
* @property {boolean} usingAudioTag - True the SoundManager and device are both using the Audio tag instead of Web Audio.
123-
* @readonly
124-
*/
125-
this.usingAudioTag = false;
126-
127-
/**
128-
* @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.
129-
* @default
130-
*/
131-
this.noAudio = false;
132-
133-
/**
134-
* @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.
135-
* @default
136-
*/
137-
this.connectToMaster = true;
138-
139-
/**
140-
* @property {boolean} touchLocked - true if the audio system is currently locked awaiting a touch event.
141-
* @default
142-
*/
143-
this.touchLocked = false;
144-
145-
/**
146-
* @property {number} channels - The number of audio channels to use in playback.
147-
* @default
148-
*/
149-
this.channels = 32;
150-
151151
};
152152

153153
Phaser.SoundManager.prototype = {

0 commit comments

Comments
 (0)