Skip to content

Commit

Permalink
use kMaxSupportedStems from engine.h
Browse files Browse the repository at this point in the history
  • Loading branch information
m0dB authored and m0dB committed Jan 20, 2025
1 parent ff55d73 commit 3e68cdc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/waveform/renderers/allshader/waveformrendererstem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@

using namespace rendergraph;

namespace {
constexpr int kMaxSupportedStems = 4;
} // anonymous namespace

namespace allshader {

WaveformRendererStem::WaveformRendererStem(
Expand All @@ -38,7 +34,7 @@ bool WaveformRendererStem::init() {
VERIFY_OR_DEBUG_ASSERT(!group.isEmpty()) {
return false;
}
for (int stemIdx = 1; stemIdx <= kMaxSupportedStems; stemIdx++) {
for (int stemIdx = 1; stemIdx <= mixxx::kMaxSupportedStems; stemIdx++) {
DEBUG_ASSERT(group.endsWith("]"));
QString stemGroup = QStringLiteral("%1Stem%2]")
.arg(group.left(group.size() - 1),
Expand Down

0 comments on commit 3e68cdc

Please sign in to comment.