Re: Asymmetry in CoreAudio representation?
Re: Asymmetry in CoreAudio representation?
- Subject: Re: Asymmetry in CoreAudio representation?
- From: Herbie Robinson <email@hidden>
- Date: Thu, 4 Apr 2002 22:08:21 -0500
The code in Daisy in incorrect, and your symmetrical version:
*outDataPtr /= 32768.0;
is the correct interpretation.
Just out of curiosity, is the compiler clever enough to go in and
subtract 16 from the exponent in the floating point number when you
write it that way, or does it load the floating point number, do a
hellishly slow floating point divide and then store the number again?
I would have thought the following to be faster:
short iSample;
float * fSamplep;
*fSamplep = iSample * (1.0/32768.0);
--
-*****************************************
**
http://www.curbside-recording.com/ **
******************************************
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.