Re: Newbie: trying to log samples
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