Re: Convert to float and more
Re: Convert to float and more
- Subject: Re: Convert to float and more
- From: Bill Stewart <email@hidden>
- Date: Thu, 5 Jun 2003 18:40:25 -0700
Yes it is fun to write your own blitters, etc, but our whole intention
of writing blitters and publishing these in the AudioConverter API is
so you can use highly optimal blitters easily without the weeks that it
takes to write these, deal with vagaries of different compilers, etc,
etc, etc,...
This is not just float-int blitters, but also interleavers and
deinterleavers - and the beauty of all this is that its maybe 5 lines
of code for you to write and it works pretty well (and we future proof
your code because then the efficiency is our problem)
(So for instance - the "restriction" of an AU to deal with
deinterleaved buffers when you want to do interleaved processing) is
actually easily overcome - especially in the case of just getting this
up and running)
Keep in mind ye olde saying "Premature optimisation is the root of all
evil" - well ok, maybe not *all* evil:-)
Bill
On Thursday, June 5, 2003, at 01:29 PM, James Coker wrote:
On Thursday, June 5, 2003, at 10:14 AM, Urs Heckmann wrote:
There are instructions, but they do usually cost more than rolling
your own bitwise manipulations...
(Like transforming your float value to be inside a single mantissa
range, reference casting to int and throwing the mantissa out of >> it..)
However, these examples have been meant as, uhm, examples. - I assume
that the people at Apple have plenty of tricks which they'd love to
share with us audio developers so we can spend more time on
supporting the platform, hehe 8-)
Yes, those kinds of efficiency tricks would be very handy to have,
especially
since one often needs to do single int->float conversions within an AU.
Jim
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.