Excuse me, is what is wrong?
CodePudding user response:
The Log write very clear, isn't it, you confirm your music files with the right position?Relative paths here should be with your engineering Resource to the position
CodePudding user response:
File path to write right ah, brotherCodePudding user response:
//load the background musicSimpleAudioEngine: : sharedEngine () - & gt; PreloadBackgroundMusic (" BM. Wav ");
//load the sound file
SimpleAudioEngine: : getInstance () - & gt; PreloadBackgroundMusic (" YX. Mp3 ");
You have to load a sound files and then play the background sound so wrong
That the following sentence into
SimpleAudioEngine: : sharedEngine () - & gt; PlayEffect (" YX. Mp3 ", false);
Secondly the location of your sound files should be in the resource - sound folder, such ability
CodePudding user response:
Upstairs to write so complicated, on the path to say again first