In using AudioFormatReader::readMaxLevels I am getting strange output. When I run it across the entire file (first two inputs are 0 and AudioFormatReader::lengthInSamples) I receive very low values (roughly 4 e-005). However I know there are samples of higher magnitude and when I run readMaxLevels on just that sample (first two inputs are and 1) I get the correct value.
Is this a bug or intended? How can I get the true max level over the entire file?