olofson / audiality2

A realtime scripted modular audio engine for video games and musical applications.
http://audiality.org/
zlib License
80 stars 5 forks source link

Switch to floating point audio and control data #351

Open olofson opened 1 year ago

olofson commented 1 year ago

It's about time to go where everyone else have long since gone: Floating point.

(See also #28.)

Implementing any non-trivial DSP code in integer/fixed point is an absolute PITA, even with 64 bit integers, which are probably still less portable than floating point. Thought it used to be a bit of a gray zone, I'm pretty certain that by now, the constant renormalizing and over/underflow avoidance hacks also make integer/fixed point slower than floating point on any non-ancient hardware.

The potential downsides of floating point, that we need to watch for: