Re: sample data types (iOS)
Re: sample data types (iOS)
- Subject: Re: sample data types (iOS)
- From: Schell Scivally <email@hidden>
- Date: Mon, 7 Feb 2011 23:08:12 -0800
Thanks Brian, that was a great explanation - it was just what I was looking for.
>Why do you say that your render callback needs float values? Who is setting this requirement? Your render callback would run more efficiently if you rewrite it to deal with the canonical 8.24 fixed-point format.
I was just using this scenario to help me explain my source of
confusion. When thinking about a sample as the speaker offset from
rest I use 1.0 and -1.0 as the max and min position, but I didn't
understand whether I should actually being filling a buffer with
floats between 1.0 and -1.0, or if I should be mapping that range to
the limits of the data type.
>In any case, the expected range is +/-1.0, but you just have to be mindful of how that translates to the 8.24 canonical format.
I'm sorry I'm still not quite up to speed here - how exactly does 8.24
translate with regard to speaker position? What are the max and min
values I should be using for the 8.24 canonical format?
AudioUnitSampleType is typedef'd as SInt32, so I'm guessing max and
min offset would be +/-UINT16_MAX (+/-65535), but I'm shooting in the
dark here. There are a lot of types in stdint.h and no mention of a
SINT32_MAX or SINT32_MIN in MacTypes.h or CoreAudioTypes.h...
_______________________________________________
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