Re: "Native" sample format
Re: "Native" sample format
- Subject: Re: "Native" sample format
- From: Jeff Moore <email@hidden>
- Date: Wed, 10 Dec 2003 12:12:58 -0800
The canonical sample format is 32 bit float. We chose that because it
strikes the right balance between memory bulk (only take a third more
space than the original 24 bit sample) and computational speed
(floating point headroom management and Altivec acceleration speed
things along quite nicley).
On Dec 10, 2003, at 5:37 AM, Jens Bauer wrote:
Hi all,
What's the native format of a sample ?
-Is it a 32bit signed integer ?
I'm asking this question, because I'd like to write my code, so
CoreAudio doesn't have to convert my data, before feeding them to the
soundcard.
I've been thinking about using floats, but since that floats are only
32bit, they're getting unprecise (but ofcourse, as long as I need 24
bits only, I don't know whether the data are actually ruined).
I'd prefer doubles, so I'm sure that I won't get that problem.
Unfortunately, there's no such format, so is the most precise format
32-bit ?
I know that most people can't hear these differences, but if I'm going
to sample some data for other purposes than sound, it could be quite
neat to have them as exact as possible, however, I'm also going to
write sound applications. ;)
Love,
Jens
_______________________________________________
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.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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.