diff options
author | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-04-15 02:43:52 +0200 |
---|---|---|
committer | m0dB <79429057+m0dB@users.noreply.github.com> | 2023-05-27 01:28:24 +0200 |
commit | e31da649adc3b99a67d818a4f020094871f71e62 (patch) | |
tree | cbdd3f9b28cbdf0f670b1f81de6727c6f7de9357 | |
parent | 326d4d3cd01a4e39ac5d1053be51ead8b8989098 (diff) |
Update src/waveform/renderers/qopengl/waveformrendererfiltered.cpp
Co-authored-by: Swiftb0y <12380386+Swiftb0y@users.noreply.github.com>
-rw-r--r-- | src/waveform/renderers/qopengl/waveformrendererfiltered.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/waveform/renderers/qopengl/waveformrendererfiltered.cpp b/src/waveform/renderers/qopengl/waveformrendererfiltered.cpp index 7db39c9a54..30ce9b7321 100644 --- a/src/waveform/renderers/qopengl/waveformrendererfiltered.cpp +++ b/src/waveform/renderers/qopengl/waveformrendererfiltered.cpp @@ -63,13 +63,9 @@ void WaveformRendererFiltered::renderGL() { const double gain = (lastVisualIndex - firstVisualIndex) / static_cast<double>(length); // Per-band gain from the EQ knobs. - float allGain(1.0), lowGain(1.0), midGain(1.0), highGain(1.0); - getGains(&allGain, &lowGain, &midGain, &highGain); - - float bandGain[3]; - bandGain[0] = lowGain; - bandGain[1] = midGain; - bandGain[2] = highGain; + float channelGain(1.0), + float bandGain[3] = {1.0, 1.0, 1.0}; + getGains(&allGain, &bandGain[0], &bandGain[1], &bandGain[2]); const float breadth = static_cast<float>(m_waveformRenderer->getBreadth()) * devicePixelRatio; const float halfBreadth = breadth / 2.0f; |