• 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: Newbie: trying to log samples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: trying to log samples


  • Subject: Re: Newbie: trying to log samples
  • From: David Duncan <email@hidden>
  • Date: Thu, 3 Feb 2005 19:33:38 -0500

On Feb 3, 2005, at 07:10 PM, Michael Hanna wrote:

after fiddling with the mic input data, I'm just curious as to what the sample values actually are. Are the values amplitude information? If the value is between 1 and -1, what does the negative value connotate? If PCM is the direct result of the analog movement of the mic diaphragm, does all that mean is that the diaphragm moved in the opposite direction as the positive value? So taking the absolute value will always give me the amplitude?

They are PCM, just like if they were integers. Typically if you have 16-bit integer audio, you use values between -32768 and 32767 -- same thing with the floating point values you receive from CoreAudio, just that the range is +/- 1.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan

_______________________________________________
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
References: 
 >Newbie: trying to log samples (From: Michael Hanna <email@hidden>)
 >Re: Newbie: trying to log samples (From: Michael Thornburgh <email@hidden>)
 >Re: Newbie: trying to log samples (From: Michael Hanna <email@hidden>)
 >Re: Newbie: trying to log samples (From: kelly jacklin <email@hidden>)
 >Re: Newbie: trying to log samples (From: Michael Hanna <email@hidden>)

  • Prev by Date: Re: Newbie: trying to log samples
  • Next by Date: Re: Initializing static C++ class variable in a HAL plugin
  • Previous by thread: Re: Newbie: trying to log samples
  • Next by thread: Re: Newbie: trying to log samples
  • Index(es):
    • Date
    • Thread