![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
音频
zhhelnice
a thinking coder
简书地址:
https://www.jianshu.com/u/6ffca93a395f
展开
-
iOS音频开发相关(二)录音 `AVAudioRecorder`
录音 AVAudioRecorder 初始化方法 AVFormatIDKey AVSampleRateKey AVNumberOfChannelsKey linear PCM keys AVLinearPCMBitDepthKey AVLinearPCMIsBigEndianKey AVLinearPCMIsFloatKey AVLinearPCMIsNonInterleaved audi...原创 2018-08-25 17:48:36 · 2655 阅读 · 0 评论 -
iOS音频开发相关(三)播放 `AVAudioPlayer`
AVAudioPlayer 初始化方法 控制方法 属性 代理 播放时间 分贝 AVAudioPlayer 初始化方法 /* all data must be in the form of an audio file understood by CoreAudio */ - (nullable instancetype)initWithContentsOfURL:(N...原创 2018-08-25 17:50:35 · 622 阅读 · 0 评论 -
iOS音频开发相关(四)小结
一、代理方法 播放器操作 AVAudioPlayer 耳机插入拔出的通知 音频播放: 上拉画出控制面板,app走的是UIApplicationWillResignActiveNotification方法 一、代理方法 AVAudioRecorder录音完成: stop或者超过最大时间限制 会调用下面的方法 - (void)audioRecorderDidFinishRec...原创 2018-08-25 17:57:40 · 250 阅读 · 0 评论