Skip to content

Commit

Permalink
Merge pull request #13577 from fwcd/fix-rubberband-ifdefs
Browse files Browse the repository at this point in the history
DlgPrefSound: Add missing ifdefs for building without Rubberband
  • Loading branch information
JoergAtGithub authored Aug 17, 2024
2 parents 548d876 + d4535e5 commit d8cad8a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/preferences/dialog/dlgprefsound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,11 @@ DlgPrefSound::DlgPrefSound(QWidget* pParent,
QOverload<int>::of(&QComboBox::currentIndexChanged),
this,
&DlgPrefSound::settingChanged);
#ifdef __RUBBERBAND__
connect(keylockComboBox,
QOverload<int>::of(&QComboBox::currentIndexChanged),
this,
&DlgPrefSound::updateKeylockDualThreadingCheckbox);
#ifdef __RUBBERBAND__
connect(keylockDualthreadedCheckBox,
&QCheckBox::clicked,
this,
Expand Down Expand Up @@ -365,7 +365,9 @@ void DlgPrefSound::slotApply() {
m_bSkipConfigClear = true;
loadSettings(); // in case SM decided to change anything it didn't like
checkLatencyCompensation();
#ifdef __RUBBERBAND__
updateKeylockDualThreadingCheckbox();
#endif
m_bSkipConfigClear = false;
}

Expand Down Expand Up @@ -749,10 +751,9 @@ void DlgPrefSound::settingChanged() {
return; // doesn't count if we're just loading prefs
}
m_settingsModified = true;

#ifdef __RUBBERBAND__
}

#ifdef __RUBBERBAND__
void DlgPrefSound::updateKeylockDualThreadingCheckbox() {
bool supportedScaler = keylockComboBox->currentData()
.value<EngineBuffer::KeylockEngine>() !=
Expand Down Expand Up @@ -790,8 +791,8 @@ void DlgPrefSound::updateKeylockMultithreading(bool enabled) {
keylockDualthreadedCheckBox->setChecked(msg.clickedButton() == pYesBtn);

updateKeylockDualThreadingCheckbox();
#endif
}
#endif

/// Slot called when a device from the config can not be selected, i.e. is
/// currently not available. This may happen during startup when MixxxMainWindow
Expand Down Expand Up @@ -910,7 +911,9 @@ void DlgPrefSound::slotResetToDefaults() {
latencyCompensationSpinBox->setValue(latencyCompensationSpinBox->minimum());

settingChanged();
#ifdef __RUBBERBAND__
updateKeylockDualThreadingCheckbox();
#endif
}

void DlgPrefSound::bufferUnderflow(double count) {
Expand Down

0 comments on commit d8cad8a

Please sign in to comment.