听起来应该是这样的。
我试过了:
NSURL* url = [[NSBundle mainBundle] URLForResource:@"Justin Bieber - U Smile" withExtension:@"mp3"];
self.player = [[AVAudioPlayer alloc] initWithContentsOfURL:
url error:nil];
self.player.volume = 1.0f;
self.player.enableRate=YES;
[self.player prepareToPlay];
[self.player setNumberOfLoops:0];
self.player.rate=0.16f;
[self.player play];
但这听起来很糟糕。