views:

388

answers:

2

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.

A: 

What API do you use for recording? What is AVAudioRecorder?

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)?

I am not sure I understand the question. But ability and easyness to make append recording without later re-writing two parts (old and new ones) depend on file and audio stream formats. For example it is easy to implement for pure MP3 files or RIFF-WAV files.

VitalyVal
AVAudioRecorder is a high level API for recording and encoding sound on the iPhone. I was curious about the ability to even append to these encoded formats without needing to re-encode the entire file.The question is basically, what should I be using instead of AVAudioRecorder if there is no way to resume a stopped recording using AVAudioRecorder.
Tegeril
Sorry. I did not notice tags "iPhone", etc. I am not familiar with iPhone programming. As for append recording in general: an API should provide means for receiving encoded data as buffer rather than direct writing to file; audio file format must "suit" for append recording; you must know audio file format. As I mentioned, MP3 and RIFF-WAV are possible formats for append recording.
VitalyVal
Ah no worries. As for MP3, it's not available on the iPhone for encoding, and while WAV is, I'm looking to record files onto a device with limited storage that can be more than two hours in duration...and store many of them.
Tegeril
A: 

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

Tegeril