I am using AVAudioRecorder to save an audio file every 15 seconds by stopping the recording appending that data to the previously recorder file using a NSMutableData object and using the appendData method.
I then record again in the same method so the recording is "continuous". The problem is as soon as you do [recorder stop] it saves/closes out the audio file at the url specified. This is fine because I can fill an NSData object with it and append it to my NSMutableObject and then write to the same file url.
The problem is something must be wrong with the header info because its only playing the first part of the audio.
My question is how do I properly combine files, even as simple as combining two audio files and having the AVAudioPlayer see it as one file. I am thinking the header information for maybe the file length/duration is messing things up when I append the second recording to the first recording.
Any ideas?