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

51 lines
963 B
C
Raw Normal View History

2020-12-28 15:15:37 +00:00
// Copyright 2018 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <QWidget>
2021-10-09 00:29:53 +00:00
namespace Core {
class System;
}
2020-12-28 15:15:37 +00:00
namespace ConfigurationShared {
enum class CheckState;
}
namespace Ui {
class ConfigureAudio;
}
class ConfigureAudio : public QWidget {
Q_OBJECT
public:
2021-10-09 00:29:53 +00:00
explicit ConfigureAudio(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 15:15:37 +00:00
~ConfigureAudio() override;
void ApplyConfiguration();
2021-10-09 00:29:53 +00:00
void SetConfiguration();
2020-12-28 15:15:37 +00:00
private:
void changeEvent(QEvent* event) override;
void InitializeAudioOutputSinkComboBox();
void RetranslateUI();
void UpdateAudioDevices(int sink_index);
void SetOutputSinkFromSinkID();
void SetAudioDeviceFromDeviceID();
void SetVolumeIndicatorText(int percentage);
void SetupPerGameUI();
std::unique_ptr<Ui::ConfigureAudio> ui;
2021-10-09 00:29:53 +00:00
const Core::System& system;
2020-12-28 15:15:37 +00:00
};