Re: Native Device Formats
Re: Native Device Formats
- Subject: Re: Native Device Formats
- From: Jeff Moore <email@hidden>
- Date: Fri, 6 Jun 2008 11:27:39 -0700
A 32 bit floating point number can losslessly encode a 24 bit integer
sample. That's why we use it. So, as long as you are doing the
conversion from 24 bit int to 32 bit float properly, it will come out
of the 24 bit hardware properly.
The easiest way to do the conversion correctly is to use an
AudioConverter or an AudioConverter-derived API like AUHAL or
ExtendedAudioFile.
On Jun 6, 2008, at 5:41 AM, Mikael Hakman wrote:
Then the following question arises:
Starting with 24-bits signed integer values, how do I output them to
a digital audio interface, so that the values appearing on the
digital wire (S/PDIF) are exactly the same as those I have in my
application? Consider a simple setup consisting of connecting MBP
built-in digital output to its digital input. My application needs
to output 24-bits signed integer values in such a way that the very
same values are obtained on digital input. How do I do this?
On Thursday, June 05, 2008 8:16 PM, Jeff Moore wrote:
... But there is also conversion going on because we feed the
driver floating point samples which then have to be converted to
the appropriate integer format.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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