Re-incorporated mixed-precision code from AudioPulse