Efficient functions to convert 24 bit WAV audio into Float32
Efficient functions to convert 24 bit WAV audio into Float32
- Subject: Efficient functions to convert 24 bit WAV audio into Float32
- From: Mark Gilbert <email@hidden>
- Date: Sat, 22 Oct 2005 14:06:13 +0100
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 ?
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