I was converted from cocos2d-iphone cocos2d-x functions in playback music, no sound, I do not know why, the following code
CocosDenshion :: SimpleAudioEngine :: sharedEngine () -> playEffect ("pew-pew-lei.caf");
Music files have been placed under the Resources folder, there is no problem playing music files manually
Reply:
Not the resources exist on the can. Need to load the next. The following is a specific code:
SimpleAudioEngine :: sharedEngine () -> preloadEffect ("pew-pew-lei.caf");
Reply:
This does not matter, it should be formatting issues, preload preload only, play cards when it is not, you can directly play
No comments:
Post a Comment