2016-05-19 03:31:03 +05:30
|
|
|
// 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 21:14:37 +05:30
|
|
|
~ConfigureAudio() override;
|
2016-05-19 03:31:03 +05:30
|
|
|
|
|
|
|
void applyConfiguration();
|
2017-09-23 18:43:59 +05:30
|
|
|
void retranslateUi();
|
2018-11-02 20:10:58 +05:30
|
|
|
void setConfiguration();
|
2016-05-19 03:31:03 +05:30
|
|
|
|
2018-12-03 00:44:32 +05:30
|
|
|
private:
|
2019-02-28 03:43:51 +05:30
|
|
|
void updateAudioOutputDevices(int sink_index);
|
|
|
|
void updateAudioInputDevices(int index);
|
2017-01-26 09:03:26 +05:30
|
|
|
|
2018-10-03 05:47:14 +05:30
|
|
|
void setOutputSinkFromSinkID();
|
|
|
|
void setAudioDeviceFromDeviceID();
|
2018-10-03 05:15:09 +05:30
|
|
|
void setVolumeIndicatorText(int percentage);
|
2016-05-19 03:31:03 +05:30
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureAudio> ui;
|
|
|
|
};
|