then I can use autoVolumeDisable() and autoVolumeEnable() with success.
BUT, if I enable the hard limiter like this:
autoVolumeControl(1, 0, 1, -50, 26, 26);
then autoVolumeDisable() leaves the AVC in a state where autoVolumeEnable() cannot re-enable it!
This was mentioned on the forums by Pensive (referring to his bitcrusher code) but I think he identified the wrong argument as problematic. (He said it was max gain but I can't reproduce any problems with that argument.)
Edit: I just noticed that the hard knee sounds the same as the soft knee option: There is significant compression even with the threshold set to 0dB. Either the threshold math is off, or maybe the library isn't actually setting the SGTL5000's hard limit mode?
On the Teensy Audio Shield, if I set up the SGTL5000's Auto Volume Control like this:
then I can use autoVolumeDisable() and autoVolumeEnable() with success.
BUT, if I enable the hard limiter like this:
then autoVolumeDisable() leaves the AVC in a state where autoVolumeEnable() cannot re-enable it!
This was mentioned on the forums by Pensive (referring to his bitcrusher code) but I think he identified the wrong argument as problematic. (He said it was max gain but I can't reproduce any problems with that argument.)
Edit: I just noticed that the hard knee sounds the same as the soft knee option: There is significant compression even with the threshold set to 0dB. Either the threshold math is off, or maybe the library isn't actually setting the SGTL5000's hard limit mode?