RE: [linux-audio-dev] Float to int conversions

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [linux-audio-dev] Float to int conversions
From: Baker, Steve (SBaker_AT_chello.com)
Date: Thu Nov 01 2001 - 16:33:14 EET


> >I have recently written a paper titled "Faster Floating
> Point to Integer Conve
> >rsions"
> >which can be read here:
> >
> > http://mega-nerd.com/FPcast/

There is some good stuff here. However in audio float to int conversions
the operation really needs to be a rounding one in most cases as truncating
the value introduces an error of 0.5 for negative values.

So I'm wondering whether you can replace the default conversion (cast) with
some kind of pure C rounding operation.

cheers


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Nov 01 2001 - 16:27:00 EET