问题
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