Re: Writing to Stereo Wav File (AudioUnitSampleType/8.24 format)
Re: Writing to Stereo Wav File (AudioUnitSampleType/8.24 format)
- Subject: Re: Writing to Stereo Wav File (AudioUnitSampleType/8.24 format)
- From: Douglas Scott <email@hidden>
- Date: Thu, 13 Jun 2013 14:29:16 -0700
There is almost nothing left in iOS CoreAudio that uses fixed-point samples. I am having a hard time imagining why you would want to store audio in this format -- fixed point only existed to allow faster math operations on audio samples when using older, much slower processors. The audio you store into audio files should be a standard format so it is usable by other audio systems and apps. If you really need to convert the audio to fixed point, do so when you process it.
On Jun 13, 2013, at 11:29 AM, Richard Dobson <email@hidden> wrote:
> On 12/06/2013 17:43, David Blake wrote:
> ..
>>
>> The error would suggest that a fixed point 8.24 cannot be stored in a
>> wav file? Is this really the case? I have also tried setting the
>> fileTypeID to AudioFileCAFType but get the same error.
>>
>
> Yes, sadly (AFAIK), there is no WAVE format defined for 8.24 (or for any fixed-point format come to that). WAVE formats are available for integer PCM (e.g. 24bit) and 32/64bit floating-point. It is more surprising, giving how iOS-specific this format appears to be, from what you write, that CAF does not support it. If such files are for private use, you might just as well write raw values to a binary file suitably named.
>
> Richard Dobson
>
> _______________________________________________
> 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