摘要:
播放声音可以通过3中方式来完成。
1.AVAudioPlayer
使用简单方便,但只能播放本地音频,不支持流媒体播放。
//初始化文件地址
NSBundle *bundle = [NSBundle mainBundle];
NSString *filePath = [bundle pathForResource:@"fileName" ofType:@"mp3"];
NSURL *url = [N... 阅读全文
posted @ 2014-01-15 14:05 Warrior Sun 阅读(754) 评论(0) 推荐(0) 编辑