Skip to content

Commit b5748c3

Browse files
committed
Should not play the suspended music
1 parent 298a456 commit b5748c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CCBoot.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2349,8 +2349,7 @@ cc.game = /** @lends cc.game# */{
23492349
this._paused = true;
23502350
// Pause audio engine
23512351
if (cc.audioEngine) {
2352-
cc.audioEngine.stopAllEffects();
2353-
cc.audioEngine.pauseMusic();
2352+
cc.audioEngine._pausePlaying();
23542353
}
23552354
// Pause main loop
23562355
if (this._intervalId)
@@ -2366,7 +2365,7 @@ cc.game = /** @lends cc.game# */{
23662365
this._paused = false;
23672366
// Resume audio engine
23682367
if (cc.audioEngine) {
2369-
cc.audioEngine.resumeMusic();
2368+
cc.audioEngine._resumePlaying();
23702369
}
23712370
// Resume main loop
23722371
this._runMainLoop();

0 commit comments

Comments
 (0)