Duckstation/src/duckstation-qt/audiosettingswidget.h

40 lines
909 B
C
Raw Normal View History

// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
2020-01-24 04:51:13 +00:00
#pragma once
#include <QtWidgets/QWidget>
#include "ui_audiosettingswidget.h"
class SettingsWindow;
2020-01-24 04:51:13 +00:00
class AudioSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit AudioSettingsWidget(SettingsWindow* dialog, QWidget* parent);
2020-01-24 04:51:13 +00:00
~AudioSettingsWidget();
private Q_SLOTS:
void onExpansionModeChanged();
void onStretchModeChanged();
2022-08-05 07:50:28 +00:00
void updateDriverNames();
2022-07-27 14:42:41 +00:00
void updateLatencyLabel();
void updateVolumeLabel();
2022-07-27 14:42:41 +00:00
void onMinimalOutputLatencyChecked(bool new_value);
void onOutputVolumeChanged(int new_value);
void onFastForwardVolumeChanged(int new_value);
void onOutputMutedChanged(int new_state);
void onExpansionSettingsClicked();
void onStretchSettingsClicked();
2020-01-24 04:51:13 +00:00
private:
Ui::AudioSettingsWidget m_ui;
SettingsWindow* m_dialog;
2020-01-24 04:51:13 +00:00
};