2020-01-24 04:51:13 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
|
|
|
|
#include "ui_audiosettingswidget.h"
|
|
|
|
|
|
|
|
class QtHostInterface;
|
2020-06-06 15:30:05 +00:00
|
|
|
class SettingsDialog;
|
2020-01-24 04:51:13 +00:00
|
|
|
|
|
|
|
class AudioSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-06-06 15:30:05 +00:00
|
|
|
explicit AudioSettingsWidget(QtHostInterface* host_interface, QWidget* parent, SettingsDialog* dialog);
|
2020-01-24 04:51:13 +00:00
|
|
|
~AudioSettingsWidget();
|
|
|
|
|
2020-05-09 14:44:56 +00:00
|
|
|
private Q_SLOTS:
|
|
|
|
void updateBufferingLabel();
|
|
|
|
void updateVolumeLabel();
|
2020-07-21 10:04:43 +00:00
|
|
|
void onOutputVolumeChanged(int new_value);
|
2020-12-08 14:48:00 +00:00
|
|
|
void onFastForwardVolumeChanged(int new_value);
|
2020-07-21 10:04:43 +00:00
|
|
|
void onOutputMutedChanged(int new_state);
|
2020-05-09 14:44:56 +00:00
|
|
|
|
2020-01-24 04:51:13 +00:00
|
|
|
private:
|
|
|
|
Ui::AudioSettingsWidget m_ui;
|
|
|
|
|
|
|
|
QtHostInterface* m_host_interface;
|
|
|
|
};
|