2016-05-18 15:01:03 -07: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 07:44:37 -08:00
|
|
|
~ConfigureAudio() override;
|
2016-05-18 15:01:03 -07:00
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 06:13:59 -07:00
|
|
|
void retranslateUi();
|
2018-11-02 07:40:58 -07:00
|
|
|
void setConfiguration();
|
2016-05-18 15:01:03 -07:00
|
|
|
|
2017-01-25 19:33:26 -08:00
|
|
|
public slots:
|
|
|
|
void updateAudioDevices(int sink_index);
|
|
|
|
|
2016-05-18 15:01:03 -07:00
|
|
|
private:
|
2018-10-02 17:17:14 -07:00
|
|
|
void setOutputSinkFromSinkID();
|
|
|
|
void setAudioDeviceFromDeviceID();
|
2018-10-02 16:45:09 -07:00
|
|
|
void setVolumeIndicatorText(int percentage);
|
2016-05-18 15:01:03 -07:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureAudio> ui;
|
|
|
|
};
|