• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Asymmetry in CoreAudio representation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Asymmetry in CoreAudio representation?
      • From: Doug Wyatt <email@hidden>
References: 
 >Re: Asymmetry in CoreAudio representation? (From: Chris Rogers <email@hidden>)

  • Prev by Date: Re: Asymmetry in CoreAudio representation?
  • Next by Date: Re: Asymmetry in CoreAudio representation?
  • Previous by thread: Re: Asymmetry in CoreAudio representation?
  • Next by thread: Re: Asymmetry in CoreAudio representation?
  • Index(es):
    • Date
    • Thread