We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8200d5 commit 2446799Copy full SHA for 2446799
CocosDenshion/SimpleAudioEngine.js
@@ -173,12 +173,12 @@ cc.AudioEngine = cc.Class.extend(/** @lends cc.AudioEngine# */{
173
}
174
175
au.addEventListener("playing", function (e) {
176
- cc.AudioEngine._instance._isMusicPlaying = true;
177
- }, false);
+ this._isMusicPlaying = true;
+ }.bind(this), false);
178
179
au.addEventListener("pause", function (e) {
180
- cc.AudioEngine._instance._isMusicPlaying = false;
181
+ this._isMusicPlaying = false;
182
183
au.loop = loop || false;
184
au.play();
0 commit comments