Re: Trying to concatenate two wav files on an iPhone is ExtAudioFile the best way?
Re: Trying to concatenate two wav files on an iPhone is ExtAudioFile the best way?
- Subject: Re: Trying to concatenate two wav files on an iPhone is ExtAudioFile the best way?
- From: Eric Chamberlain <email@hidden>
- Date: Wed, 18 Aug 2010 20:42:15 -0700
Bill,
Thanks you for pointing me in the right direction.
One more question. If I am not transcoding, do I need to set the state of the audio session and audio session category?
On Aug 18, 2010, at 6:09 PM, William Stewart wrote:
> If you match the files' format (lets say that both files are 16bit, 44.1kHz) and your destination file is the same format (16bit, 44.1kHz), then you can just create a new file, and copy the data into that new file from each of the source files. AudioFile can be easily used for this because you do NOT want to change the format of the 2 source files and the destination file. In this case you can also use ExtAudioFile (just set the client format to be the same as the file format so that there are no unncecessary conversions in the process of reading and writing the data)
>
> If you want to not match the files' format (lets say you have 1 file at 16bit, 48kHz, the other is email@hidden), then you choose the destination file format (lets say it is 16bit, 48kHz), then ExtAudioFile is good to use because it will give you the format from the two sources files in the same format (your client format), regardless of the format that is in each of these source files. At that point, you just need to be careful about the format of the destination file, so that you keep as much of the fidelity as you want from your source files (in this case above I chose 16 bit, 48kHz, because that was the better format from the 2 source files).
>
> There is an example called ConvertFile at the developer web site. This shows you how to use both of these API (and more), so it should give you a good handle on how this code works
>
> Bill
>
> On Aug 18, 2010, at 3:54 PM, Eric Chamberlain wrote:
>
>> Hi,
>>
>> I'm trying to figure out how to concatenate two or more wav files recorded on an iPhone. Is ExtAudioFile the best way to concatenate the files?
>>
>> I'm new to core audio, is there any concatenation sample code out there?
>>
>> --
>> Eric Chamberlain
>>
>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden