Duckstation/src/duckstation-qt/audiosettingswidget.h

30 lines
623 B
C++

#pragma once
#include <QtWidgets/QWidget>
#include "ui_audiosettingswidget.h"
class QtHostInterface;
class SettingsDialog;
class AudioSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit AudioSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
~AudioSettingsWidget();
private Q_SLOTS:
void updateBufferingLabel();
void updateVolumeLabel();
void onOutputVolumeChanged(int new_value);
void onFastForwardVolumeChanged(int new_value);
void onOutputMutedChanged(int new_state);
private:
Ui::AudioSettingsWidget m_ui;
QtHostInterface* m_host_interface;
};