Combining Audio Files as One Properly on iPhone with NSData -


I am using AVAudioRecorder by recording the recording of an audio file every 15 seconds, which is the first recorder file By adding an NSMutableData object and using the appendData method.

Then I record it again in the same method so that the recording is "continuous". The problem is that as soon as you [stop the recorder], it saves / closes the audio file on the specified URL. This is fine because I can fill an NSData object with it and add it to my NSMutableObject and then I can write on the same file URL.

The problem should be incorrect with some header information because its first part of the audio only

My question is how do I combine files properly, even adding two audio files and seeing AVAudioPlayer as a file in simple form.

Any thoughts?

one The audio file has a header that specifies how many samples are in the file and how long it should be part of the data. Any data added to an existing file will be ignored. This is the reason that you only listen to the first recording.

You can not just engage or insert audio files like they were raw data. You must remove the part of the sample data from each file, just press the data, and then the number of data and the number of samples will need to be written with a new file header, and finally the part of the included sound data will be itself


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

kernel - How to create a "Block device" in Windows -