hi,
i have a button that when pressed plays a short sound, here is my code....
Code:
clickoutsound2 = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"clickoutsound2" ofType:@"wav"]] error:NULL];
clickoutsound2.volume = 0.6;
[clickoutsound2 play];
my problem is that if the ipod/iphone is all ready playing music it pauses it..then plays the short sound.
is there a simple way to code it so it does NOT pause the music but just plays over it???
thanks in advance
dan