Skip to content

Commit

Permalink
Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
timothyschoen committed Dec 28, 2024
1 parent b3998cc commit b8ce808
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Source/Dialogs/AudioSettingsPanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,8 @@ class StandaloneAudioSettingsPanel final : public SettingsDialogPanel
, public Value::Listener {

public:
explicit StandaloneAudioSettingsPanel(PluginProcessor* processor)
: pd(processor)
, deviceManager(*ProjectInfo::getDeviceManager())
explicit StandaloneAudioSettingsPanel()
: deviceManager(*ProjectInfo::getDeviceManager())
, inputLevelMeter(deviceManager.getInputLevelGetter())
, outputLevelMeter(deviceManager.getOutputLevelGetter())
{
Expand Down Expand Up @@ -428,7 +427,6 @@ class StandaloneAudioSettingsPanel final : public SettingsDialogPanel
}
}

PluginProcessor* pd;
AudioDeviceManager& deviceManager;
DeviceManagerLevelMeter inputLevelMeter;
DeviceManagerLevelMeter outputLevelMeter;
Expand Down
2 changes: 1 addition & 1 deletion Source/Dialogs/SettingsDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class SettingsDialog final : public Component {
panels.clear();

if (ProjectInfo::isStandalone) {
panels.add(new StandaloneAudioSettingsPanel(processor));
panels.add(new StandaloneAudioSettingsPanel());
} else {
panels.add(new DAWAudioSettingsPanel(processor));
}
Expand Down

0 comments on commit b8ce808

Please sign in to comment.