qt: Add the FM synth driver select option to the UI
This commit is contained in:
@@ -25,6 +25,7 @@ extern "C" {
|
||||
#include <86box/sound.h>
|
||||
#include <86box/midi.h>
|
||||
#include <86box/snd_mpu401.h>
|
||||
#include <86box/snd_opl.h>
|
||||
}
|
||||
|
||||
#include "qt_deviceconfig.hpp"
|
||||
@@ -52,6 +53,10 @@ void SettingsSound::save() {
|
||||
GAMEBLASTER = ui->checkBoxCMS->isChecked() ? 1 : 0;
|
||||
GUS = ui->checkBoxGUS->isChecked() ? 1 : 0;;
|
||||
sound_is_float = ui->checkBoxFloat32->isChecked() ? 1 : 0;;
|
||||
if (ui->radioButtonYMFM->isChecked())
|
||||
fm_driver = FM_DRV_YMFM;
|
||||
else
|
||||
fm_driver = FM_DRV_NUKED;
|
||||
}
|
||||
|
||||
void SettingsSound::onCurrentMachineChanged(int machineId) {
|
||||
@@ -151,6 +156,15 @@ void SettingsSound::onCurrentMachineChanged(int machineId) {
|
||||
ui->pushButtonConfigureGUS->setEnabled((GUS > 0) && hasIsa16);
|
||||
ui->checkBoxSSI2001->setEnabled(hasIsa);
|
||||
ui->pushButtonConfigureSSI2001->setEnabled((SSI2001 > 0) && hasIsa);
|
||||
switch (fm_driver) {
|
||||
case FM_DRV_YMFM:
|
||||
ui->radioButtonYMFM->setChecked(true);
|
||||
break;
|
||||
case FM_DRV_NUKED:
|
||||
default:
|
||||
ui->radioButtonNuked->setChecked(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static bool allowMpu401(Ui::SettingsSound *ui) {
|
||||
|
@@ -152,6 +152,35 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>FM synth driver</string>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_1">
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButtonNuked">
|
||||
<property name="text">
|
||||
<string>Nuked</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QRadioButton" name="radioButtonYMFM">
|
||||
<property name="text">
|
||||
<string>YMFM</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
Reference in New Issue
Block a user