Skip to content

Commit

Permalink
Add unit test for stem control
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Jul 30, 2024
1 parent 7fdd9e0 commit ffeca7e
Show file tree
Hide file tree
Showing 9 changed files with 3,310 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3450,6 +3450,7 @@ if (STEM)
target_sources(mixxx-test PUBLIC
src/test/stemtest.cpp
src/test/steminfotest.cpp
src/test/stemcontrolobjecttest.cpp
)
list(APPEND MIXXX_LIB_PRECOMPILED_HEADER src/track/steminfo.h)
target_sources(mixxx-lib PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion src/mixer/basetrackplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ BaseTrackPlayerImpl::BaseTrackPlayerImpl(
for (int stemIdx = 1; stemIdx <= kMaxSupportedStems; stemIdx++) {
m_pStemColors.emplace_back(std::make_unique<ControlObject>(
ConfigKey(getGroup(), QStringLiteral("stem_%1_color").arg(stemIdx))));
m_pStemColors.back()->setReadOnly();
m_pStemColors.back()->set(kNoTrackColor);
m_pStemColors.back()->setReadOnly();
}
#endif
}
Expand Down
Loading

0 comments on commit ffeca7e

Please sign in to comment.