Hey, I'm using SimpleAudioEngine and I want to play two different sfx sound effects with two different volume level. But only the latest set volume works. Here is my code:
this portion executes first:
[[SimpleAudioEngine sharedEngine] setEffectsVolume:0.5];
[[SimpleAudioEngine sharedEngine] playEffect:@"effect1.wav"];
after a few time the following portion executes:
[[SimpleAudioEngine sharedEngine] setEffectsVolume:0.8];
[[SimpleAudioEngine sharedEngine] playEffect:@"effect2.wav"];
The duration of "effect1.wav" is 5 sec and the audio file "effect2.wav" plays just after 1 sec of the first one.In this case the volume of the audio file "effect1.wav" reaches to 0.8 which I set for the second one. but I don't want this. Can anyone tell me how I can fix it such that two different audio file play with two different volume levels simultanuously?