是否可以在不停止 iPod 音乐的情况下在应用程序中播放声音?
现在我正在使用以下内容,但它会停止 iPod 音乐
soundPath =[[NSBundle mainBundle] pathForResource:@"mySound" ofType:@"mp3"];
soundURL = [NSURL fileURLWithPath:soundPath];
mySound = [[AVAudioPlayer alloc] initWithContentsOfURL:soundURL error:nil];
[mySound prepareToPlay];
进而
[mySound play];