Skip to content

Commit

Permalink
fix: support visual gain in stem waveform
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Feb 2, 2025
1 parent e0e32ae commit 2c967f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/waveform/renderers/allshader/waveformrendererstem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ bool WaveformRendererStem::preprocessInner() {
}

// Cast to float
float max = static_cast<float>(u8max);
float max = static_cast<float>(u8max) * allGain;

// Apply the gains
if (layerIdx) {
Expand Down

0 comments on commit 2c967f4

Please sign in to comment.