Inside my plugin’s processBlock function, i need to detect empty buffers (silence).
float maxVal = buffer.getMagnitude (0, buffer.getNumSamples());
So if maxVal is zero, buffer is empy. This is working perfect with VST format for example.
Unfortunately, this is not the case with AAX - when buffer is empty, instead of zero i get value 2.1684e-019.
I guess this is because Pro Tools are using fixed-point format? If so, what is the best way in JUCE to convert fixed-point values to floats? Am i missing something?