klangfreund / LUFSMeter

An implementation of the loudness measurement algorithm ITU-R BS.1770
212 stars 30 forks source link

Input to processBlock should be const #5

Closed salsa-sound closed 2 years ago

salsa-sound commented 2 years ago

In the processBlock function you say "We want the audio output to be exactly the same as the input!" To ensure this and let the client know that their audio buffer will not be changed, the input to the function should be 'const juce::AudioSampleBuffer&'

klangfreund commented 2 years ago

Good point! Thank you for letting me know. It's now const.

https://github.com/klangfreund/LUFSMeter/commit/783a59d78c31e52b3a50b52d9afaadf3118f7536