Hi all,
I just started using SimpleAudioEngine and am noticing that some sounds play and some do not. I've tried calling preloadEffect: on all WAV files but it doesn't seem to help. The problem also appears to be inconsistent... some sounds play some of the time and others never play at all.
Basically, I'm calling SimpleAudioEngine as follows:
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"intro1.mp3" loop:YES];
// wait for tap
[[SimpleAudioEngine sharedEngine] stopBackgroundMusic];
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"intro2.mp3" loop:YES];
// wait for tap
[[SimpleAudioEngine sharedEngine] stopBackgroundMusic];
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:@"background.mp3" loop:YES];
[[SimpleAudioEngine sharedEngine] playEffect:@"effect1.wav"];
[[SimpleAudioEngine sharedEngine] playEffect:@"effect2.wav"];
For example, effect1 may or not play and effect2 will never play, etc.
I'm using SVN revision 1329 although it was occurring with 8.0.1 as well.
Any thoughts?