FigBug/Gin

In LevelTracker, only the first channel of the audio buffer is referenced.

COx2 opened this issue · 2 comments

COx2 commented

Hello Roland,

I found a code that is probably a mistake.
As the title says, only the first channel of the audio buffer is referenced in LevelTracker component.

trackBuffer (buffer.getReadPointer (0), buffer.getNumSamples());

This code is causing, if the plugin can receive stereo signals, the level meter do not respond when the signal is input to the R channel only.
e.g. Compressor and Limiter in the slPlugins repository.
If I change this code as follows, such behavior will be collected.

trackBuffer (buffer.getReadPointer (i), buffer.getNumSamples());

Yup, looks like you are correct. Either submit a pull request or I'll get to it next time I get a moment.

COx2 commented

Thank you for your response in 44ffdd9