Re: Efficient functions to convert 24 bit WAV audio into Float32
Re: Efficient functions to convert 24 bit WAV audio into Float32
- Subject: Re: Efficient functions to convert 24 bit WAV audio into Float32
- From: Brad Ford <email@hidden>
- Date: Sat, 22 Oct 2005 19:19:36 -0700
On Oct 22, 2005, at 6:06 AM, Mark Gilbert wrote:
Folks.
We are optimizing our code, and we have got to a part of our
playback engine where we are feeding 24 bit Intel Format data into
an output device (requiring Float32).
Right now we have a function call which operates on each 24-bit
word. Clearly this is not efficient.
We have conjured up a macro for 16 bit to Float32, but its proving
tricky for 24 bit to Float32 (supporting both Moto and intel byte
ordering). Also, the macro is using some floating point division
which is apparently not efficient.
Is there some excellent function built into Core audio for these
conversions ?
How 'bout AudioConverterFillComplexBuffer? It is highly optimized
for such operations (and by extension, AUConverter is as well).
-Brad Ford
QuickTime Engineering
We handle our own audio up to the point where it hits the render
proc for our output AUGraph, so its not a practical option to use
any of the major core audio disk architecture stuff.
Any hints ?
Cheers
Mark Gilbert
--
email@hidden
Tel: +44 208 340 5677
fax: +44 870 055 7790
http://www.gallery.co.uk
New Product ! - MetaCorder
Location Sound Field Recorder
http://www.metacorder.info
_______________________________________________
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
_______________________________________________
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