一般音乐,音频 录音播放器,基于AVFoundation
-
AMR编码解码 基于 libopencore bitcode编译方法
-
MP3编码 基于 lame类库 bitcode版本编译
-
libopencore 不支持bitcode 需要的话可以自行前往编译
-
播放AMR文件时,需要指定AMR文件的fileTypeID方便使用AMR解码播放,否则可能无法播放
-
MP3,CAF采样率默认44100 可在开始录音前手动修改
-
AMR采样率必须为8000
-
真机运行后显示image not match 的类库编译错误 解决方法如下
- 删除XMNAudioExample 下的XMNAudio.framework类库
- 重新编译下XMNAudio工程,生成真机的XMNAudio.framework类库
- XMNAudioExample工程中重新添加下真机XMNAudio.framework类库,即可
self.recorder = [[XMNAudioRecorder alloc] init];
/** 设置不同的Encoder 可以录制不同文件 */
[self.recorder setConvertType:XMNAudioEncoderTypeMP3];
[self.recorder startRecording];
self.player = [[XMNAudioPlayer alloc] initWithAudioFile:self.songs[self.index]];
[self.player play];
###TODO
- 播放网络文件 -- done
- 增加bitcode支持 -- done
