06-08 17:05:42.310 10635-10678/com.wzx.GFCocos2d E/Cocos2dxMusic: error: GameGgMusic.mp3
java.io.FileNotFoundException: GameGgMusic.mp3
at android.content.res.AssetManager.openAssetFd(Native Method)
at android.content.res.AssetManager.openFd(AssetManager.java:331)
at org.cocos2dx.lib.Cocos2dxMusic.createMediaplayer(Cocos2dxMusic.java:253)
at org.cocos2dx.lib.Cocos2dxMusic.preloadBackgroundMusic(Cocos2dxMusic.java:86)
at org.cocos2dx.lib.Cocos2dxHelper.preloadBackgroundMusic(Cocos2dxHelper.java:231)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeRender(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame(Cocos2dxRenderer.java:104)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1524)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
06-08 17:05:42.310 10635-10678/com.wzx.GFCocos2d E/Cocos2dxMusic: playBackgroundMusic: background media player is null
GameGgMusic.mp3,报错说这个文件找不到,是不是音乐文件的文件名字写错了,是不是应该是这个名字“GameBgMusic.mp3”?
没有啊!~在mac,ios,win32都有声音,音效能出得来,就是播放背景音乐出不来!~
其他音效都能出得来!~
文件名请不要用大写字母!!!
这个问题后来解决了吗?