AVAudioRecorder - Continue recording to file after user stops recording by leaving the application and then re-opens it

你离开我真会死。 提交于 2019-12-24 07:45:52

问题


Can this be done? And if not, how far down towards Core Audio do I need to go (what method of recording should I be using instead)?

I've noticed the behavior of AVAudioRecorder is to overwrite a file if it finds one at the path provided when you request that it record again, so I know that's not going to work. I'm also curious about file format restriction with this idea. Can you effectively resume an AAC or IMA4 encoding (the length of the files I want to record make WAV and probably even Apple Lossless prohibitive)?

Thanks.


回答1:


As Tegeril says, AVAudioRecorder can't do. What you might be able to do though is record as separate files then concatenate using this answer:

How to append two audio files?




回答2:


As it stands right now, it appears AVAudioRecorder cannot do this.



来源:https://stackoverflow.com/questions/2441180/avaudiorecorder-continue-recording-to-file-after-user-stops-recording-by-leavi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!