Combining Audio Files as One Properly on iPhone with NSData?

An audio file has a header which specifies how many samples are in the file and how long the data chunk should be. Any data appended to an existing file will be ignored. This is why you only hear the first recording.

An audio file has a header which specifies how many samples are in the file and how long the data chunk should be. Any data appended to an existing file will be ignored. This is why you only hear the first recording.

You can't just append or concat audio files as if they were raw data. You have to extract the sample data chunk from each file, concat just the data, and then write a new file header with the fields for the data length and number of samples filled out correctly, and finally the concatenated sound data chunk itself.

The iPhone Audio API allows you to create a very large/long audio file without having to do anything too complicated. See the sample code SpeakHere, it creates a sound file that just grows with time, likely up to some very large size.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions