Re: deprecated audiounitsampletype replacement
Re: deprecated audiounitsampletype replacement
- Subject: Re: deprecated audiounitsampletype replacement
- From: Doug Wyatt <email@hidden>
- Date: Fri, 09 Jan 2015 16:09:51 -0800
The rationale is that there's always an AudioStreamBasicDescription telling you what kind of data you have. Assumptions involving AudioSampleType are fragile. sizeof(AudioSampleType) can always be replaced by a calculation involving bytes per frame (being careful of interleavedness). If you are touching the samples yourself, it's not very useful (and probably dangerous) to rely on AudioSampleType instead of int16_t, int32_t, or float.
HTH,
Doug
> On Jan 9, 2015, at 12:01 , Robert Carroll <email@hidden> wrote:
>
> Is there a way to replay the deprecated audiounitsampletype with something that will work on both ios 8 and pre-ios 8? I had gone through my code and replaced audiounitsampletype with SInt 32, which works for ios 6 & 7, but fails with ios8.
>
> any suggestions would be appreciated
>
> thanks,
>
>
> Robert Carroll
> RSM Records
> Toronto
> http://www.rsmrecords.com
>
>
>
> _______________________________________________
> 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