pineapple-src/src/yuzu/configuration/configure_audio.h

50 lines
939 B
C
Raw Normal View History

2022-04-23 14:49:07 -04:00
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 10:15:37 -05:00
#pragma once
#include <memory>
#include <QWidget>
2021-10-08 20:29:53 -04:00
namespace Core {
class System;
}
2020-12-28 10:15:37 -05:00
namespace ConfigurationShared {
enum class CheckState;
}
namespace Ui {
class ConfigureAudio;
}
class ConfigureAudio : public QWidget {
Q_OBJECT
public:
2021-10-08 20:29:53 -04:00
explicit ConfigureAudio(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 10:15:37 -05:00
~ConfigureAudio() override;
void ApplyConfiguration();
2021-10-08 20:29:53 -04:00
void SetConfiguration();
2020-12-28 10:15:37 -05:00
private:
void changeEvent(QEvent* event) override;
2022-07-07 03:40:51 -04:00
void InitializeAudioSinkComboBox();
2020-12-28 10:15:37 -05:00
void RetranslateUI();
void UpdateAudioDevices(int sink_index);
void SetOutputSinkFromSinkID();
2022-07-07 03:40:51 -04:00
void SetAudioDevicesFromDeviceID();
2020-12-28 10:15:37 -05:00
void SetVolumeIndicatorText(int percentage);
void SetupPerGameUI();
std::unique_ptr<Ui::ConfigureAudio> ui;
2021-10-08 20:29:53 -04:00
const Core::System& system;
2020-12-28 10:15:37 -05:00
};