Skip to content

Commit

Permalink
Rename spuLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Dec 1, 2024
1 parent f462438 commit f5d4667
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/panda_qt/config_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ ConfigWindow::ConfigWindow(ConfigCallback callback, const EmulatorConfig& emuCon

// Audio settings
QGroupBox* spuGroupBox = new QGroupBox(tr("Audio Settings"), this);
QFormLayout* spuLayout = new QFormLayout(spuGroupBox);
spuLayout->setHorizontalSpacing(20);
spuLayout->setVerticalSpacing(10);
QFormLayout* audioLayout = new QFormLayout(spuGroupBox);
audioLayout->setHorizontalSpacing(20);
audioLayout->setVerticalSpacing(10);

QComboBox* dspType = new QComboBox;
dspType->addItem(tr("Null"));
Expand All @@ -196,27 +196,27 @@ ConfigWindow::ConfigWindow(ConfigCallback callback, const EmulatorConfig& emuCon
config.dspType = static_cast<Audio::DSPCore::Type>(index);
updateConfig();
});
spuLayout->addRow(tr("DSP emulation"), dspType);
audioLayout->addRow(tr("DSP emulation"), dspType);

QCheckBox* audioEnabled = new QCheckBox(tr("Enable audio"));
audioEnabled->setChecked(config.audioEnabled);
connectCheckbox(audioEnabled, config.audioEnabled);
spuLayout->addRow(audioEnabled);
audioLayout->addRow(audioEnabled);

QCheckBox* aacEnabled = new QCheckBox(tr("Enable AAC audio"));
aacEnabled->setChecked(config.aacEnabled);
connectCheckbox(aacEnabled, config.aacEnabled);
spuLayout->addRow(aacEnabled);
audioLayout->addRow(aacEnabled);

QCheckBox* printDSPFirmware = new QCheckBox(tr("Print DSP firmware"));
printDSPFirmware->setChecked(config.printDSPFirmware);
connectCheckbox(printDSPFirmware, config.printDSPFirmware);
spuLayout->addRow(printDSPFirmware);
audioLayout->addRow(printDSPFirmware);

QCheckBox* muteAudio = new QCheckBox(tr("Mute audio device"));
muteAudio->setChecked(config.audioDeviceConfig.muteAudio);
connectCheckbox(muteAudio, config.audioDeviceConfig.muteAudio);
spuLayout->addRow(muteAudio);
audioLayout->addRow(muteAudio);

QSpinBox* volumeRaw = new QSpinBox;
volumeRaw->setRange(0, 200);
Expand All @@ -225,7 +225,7 @@ ConfigWindow::ConfigWindow(ConfigCallback callback, const EmulatorConfig& emuCon
config.audioDeviceConfig.volumeRaw = static_cast<float>(value) / 100.0f;
updateConfig();
});
spuLayout->addRow(tr("Audio device volume"), volumeRaw);
audioLayout->addRow(tr("Audio device volume"), volumeRaw);

// Battery settings
QGroupBox* batGroupBox = new QGroupBox(tr("Battery Settings"), this);
Expand Down

0 comments on commit f5d4667

Please sign in to comment.