2018-07-30 23:57:53 -04: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>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigureAudio;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureAudio : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureAudio(QWidget* parent = nullptr);
|
2018-12-02 14:10:28 -05:00
|
|
|
~ConfigureAudio() override;
|
2018-07-30 23:57:53 -04:00
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void ApplyConfiguration();
|
|
|
|
void RetranslateUI();
|
2018-07-30 23:57:53 -04:00
|
|
|
|
2018-12-02 14:14:32 -05:00
|
|
|
private:
|
2019-05-26 00:39:23 -04:00
|
|
|
void UpdateAudioDevices(int sink_index);
|
2018-07-30 23:57:53 -04:00
|
|
|
|
2019-05-26 00:39:23 -04:00
|
|
|
void SetConfiguration();
|
|
|
|
void SetOutputSinkFromSinkID();
|
|
|
|
void SetAudioDeviceFromDeviceID();
|
|
|
|
void SetVolumeIndicatorText(int percentage);
|
2018-07-30 23:57:53 -04:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureAudio> ui;
|
|
|
|
};
|