Hi all,
I'm currently experiencing problems playing sounds using CocosDenshion (SimpleAudioEngine).
This problem occurs in the Simulator but I've not yet tested it on an iPhone device.
The 2 lines of code below are a 'hack' that fixes this problem...
[[SimpleAudioEngine sharedEngine] resumeBackgroundMusic]; // hack
[[SimpleAudioEngine sharedEngine] pauseBackgroundMusic]; // hack
if([GlobalDataManager sharedDataManager].sfxOn == YES) {
[[SimpleAudioEngine sharedEngine] playEffect:@"gameSound.mp3"];
}
Without the 'hack' the sound effect will not play, not too sure why though?