2
是否可以在不停止iPod音乐的情况下播放应用程序中的声音?是否可以在不停止iPod音乐的情况下播放声音?
现在,我使用以下,但它停止的iPod音乐
soundPath =[[NSBundle mainBundle] pathForResource:@"mySound" ofType:@"mp3"];
soundURL = [NSURL fileURLWithPath:soundPath];
mySound = [[AVAudioPlayer alloc] initWithContentsOfURL:soundURL error:nil];
[mySound prepareToPlay];
然后
[mySound play];
这对我来说很好,对于我来说很少有大惊小怪。 –