2016-05-18 22:01:03 +00:00
|
|
|
// Copyright 2016 Citra 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-07 15:44:37 +00:00
|
|
|
~ConfigureAudio() override;
|
2016-05-18 22:01:03 +00:00
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 13:13:59 +00:00
|
|
|
void retranslateUi();
|
2018-11-02 14:40:58 +00:00
|
|
|
void setConfiguration();
|
2016-05-18 22:01:03 +00:00
|
|
|
|
2018-12-02 19:14:32 +00:00
|
|
|
private:
|
2019-02-27 22:13:51 +00:00
|
|
|
void updateAudioOutputDevices(int sink_index);
|
|
|
|
void updateAudioInputDevices(int index);
|
2017-01-26 03:33:26 +00:00
|
|
|
|
2018-10-03 00:17:14 +00:00
|
|
|
void setOutputSinkFromSinkID();
|
|
|
|
void setAudioDeviceFromDeviceID();
|
2018-10-02 23:45:09 +00:00
|
|
|
void setVolumeIndicatorText(int percentage);
|
2016-05-18 22:01:03 +00:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureAudio> ui;
|
|
|
|
};
|