Projucer should have a denormal support flag

OK I’ve added the ScopedNoDenormals class to JUCE on develop with commit e2c8e30. I’ve also modified the audio plugin template in the projucer to use this class in the processBlock method.

Additionally, this commit adds a flag called JUCE_DSP_ENABLE_SNAP_TO_ZERO to the dsp module which is enabled by default, but can be disabled if you wish to remove all denormalisation code used in the dsp module’s filters and algorithms.

2 Likes