Hello I am making a cocos2d side scroller. I am trying to add a background audio file. I am using SimpleAudioEngine. This is the code:
[[SimpleAudioEngine sharedEngine]playBackgroundMusic:@"Soundtrack.mp3" loop:YES];
But when I run it it gives me a error. The line that it says is giving me the error is:
[audioSourcePlayer prepareToPlay];
Is there a different way to add a sound file that won't give me this error?