AVAudioRecorder - Continue recording to file after

2019-08-02 10:13发布

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.

2条回答
Ridiculous、
2楼-- · 2019-08-02 11:02

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?

查看更多
等我变得足够好
3楼-- · 2019-08-02 11:03

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

查看更多
登录 后发表回答