mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
Some checks failed
🐧 Linux Builds / AppImage (push) Waiting to run
🐧 Linux Builds / Flatpak (push) Waiting to run
🍎 MacOS Builds / Defaults (push) Waiting to run
🖥️ Windows Builds / Lint VS Project Files (push) Waiting to run
🖥️ Windows Builds / SSE4 (push) Blocked by required conditions
🖥️ Windows Builds / AVX2 (push) Blocked by required conditions
🖥️ Windows Builds / CMake (push) Waiting to run
🏭 Update Controller Database / update-controller-db (push) Has been cancelled
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2002-2025 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
#pragma once
|
|
|
|
#include "ui_AudioSettingsWidget.h"
|
|
|
|
#include "SettingsWidget.h"
|
|
|
|
enum class AudioBackend : u8;
|
|
enum class AudioExpansionMode : u8;
|
|
|
|
class AudioSettingsWidget : public SettingsWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
AudioSettingsWidget(SettingsWindow* settings_dialog, QWidget* parent);
|
|
~AudioSettingsWidget();
|
|
|
|
private Q_SLOTS:
|
|
void onExpansionModeChanged();
|
|
void onSyncModeChanged();
|
|
|
|
void updateDriverNames();
|
|
void updateDeviceNames();
|
|
void updateLatencyLabel();
|
|
void updateVolumeLabel();
|
|
void onMinimalOutputLatencyChanged();
|
|
void onStandardVolumeChanged(const int new_value);
|
|
void onFastForwardVolumeChanged(const int new_value);
|
|
void onOutputMutedChanged(const int new_state);
|
|
|
|
void onExpansionSettingsClicked();
|
|
void onStretchSettingsClicked();
|
|
|
|
private:
|
|
AudioBackend getEffectiveBackend() const;
|
|
AudioExpansionMode getEffectiveExpansionMode() const;
|
|
u32 getEffectiveExpansionBlockSize() const;
|
|
void resetVolume(const bool fast_forward);
|
|
|
|
Ui::AudioSettingsWidget m_ui;
|
|
u32 m_output_device_latency = 0;
|
|
};
|