Duckstation/src/duckstation-qt/audiosettingswidget.cpp

19 lines
903 B
C++
Raw Normal View History

2020-01-24 04:51:13 +00:00
#include "audiosettingswidget.h"
#include "settingwidgetbinder.h"
AudioSettingsWidget::AudioSettingsWidget(QtHostInterface* host_interface, QWidget* parent /* = nullptr */)
: QWidget(parent), m_host_interface(host_interface)
{
m_ui.setupUi(this);
2020-02-25 13:40:42 +00:00
for (u32 i = 0; i < static_cast<u32>(AudioBackend::Count); i++)
m_ui.audioBackend->addItem(tr(Settings::GetAudioBackendDisplayName(static_cast<AudioBackend>(i))));
2020-01-24 04:51:13 +00:00
SettingWidgetBinder::BindWidgetToEnumSetting(m_host_interface, m_ui.audioBackend, "Audio/Backend",
&Settings::ParseAudioBackend, &Settings::GetAudioBackendName);
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.syncToOutput, "Audio/Sync");
2020-03-15 12:04:32 +00:00
SettingWidgetBinder::BindWidgetToBoolSetting(m_host_interface, m_ui.startDumpingOnBoot, "Audio/DumpOnBoot");
2020-01-24 04:51:13 +00:00
}
AudioSettingsWidget::~AudioSettingsWidget() = default;