mirror of https://github.com/axmolengine/axmol.git
Fix CocosDenshionTest playMusic won't work under android system
Fix click setNotificationNode button in SceneTest then return to main menu the animation is still play on screen
This commit is contained in:
parent
462f4f4c0a
commit
ce555f68de
|
@ -231,7 +231,11 @@ var soundId = null;
|
|||
|
||||
var playMusic = function () {
|
||||
cc.log("play background music");
|
||||
audioEngine.playMusic(MUSIC_FILE, false);
|
||||
var musicFile = MUSIC_FILE;
|
||||
if (cc.sys.os == cc.sys.OS_ANDROID) {
|
||||
musicFile = "res/"+musicFile;
|
||||
}
|
||||
audioEngine.playMusic(musicFile, false);
|
||||
};
|
||||
|
||||
var stopMusic = function () {
|
||||
|
|
|
@ -103,7 +103,8 @@ var SceneTestLayer1 = cc.Layer.extend({
|
|||
|
||||
director.pushScene(new cc.TransitionSlideInT(1, scene));
|
||||
},
|
||||
onQuit:function (sender) {
|
||||
onExit:function (sender) {
|
||||
cc.director.setNotificationNode(null);
|
||||
}
|
||||
|
||||
//CREATE_NODE(SceneTestLayer1);
|
||||
|
|
Loading…
Reference in New Issue