2016-05-19 00:01:03 +02: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 16:44:37 +01:00
|
|
|
~ConfigureAudio() override;
|
2016-05-19 00:01:03 +02:00
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void ApplyConfiguration();
|
|
|
|
void RetranslateUI();
|
|
|
|
void SetConfiguration();
|
2016-05-19 00:01:03 +02:00
|
|
|
|
2018-12-02 20:14:32 +01:00
|
|
|
private:
|
2019-05-26 06:39:23 +02:00
|
|
|
void UpdateAudioOutputDevices(int sink_index);
|
|
|
|
void UpdateAudioInputDevices(int index);
|
2017-01-26 04:33:26 +01:00
|
|
|
|
2019-05-26 06:39:23 +02:00
|
|
|
void SetOutputSinkFromSinkID();
|
|
|
|
void SetAudioDeviceFromDeviceID();
|
|
|
|
void SetVolumeIndicatorText(int percentage);
|
2016-05-19 00:01:03 +02:00
|
|
|
|
|
|
|
std::unique_ptr<Ui::ConfigureAudio> ui;
|
|
|
|
};
|