mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Ref T731, audio UI
* set settings from UI properly * UI improvements
This commit is contained in:
committed by
Mat Sutcliffe
parent
ced0004234
commit
16a1f1a8a9
@@ -23,6 +23,7 @@
|
||||
#include <QScopedPointer>
|
||||
|
||||
namespace Ui { class CAudioDeviceVolumeSetupComponent; }
|
||||
namespace BlackCore { namespace Afv { namespace Clients { class CAfvClient; }}}
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
@@ -40,7 +41,7 @@ namespace BlackGui
|
||||
virtual ~CAudioDeviceVolumeSetupComponent() override;
|
||||
|
||||
//! Get input and output volume values @{
|
||||
int getInValue(int from = BlackMisc::Audio::CSettings::InMin, int to = BlackMisc::Audio::CSettings::InMax) const;
|
||||
int getInValue(int from = BlackMisc::Audio::CSettings::InMin, int to = BlackMisc::Audio::CSettings::InMax) const;
|
||||
int getOutValue(int from = BlackMisc::Audio::CSettings::OutMin, int to = BlackMisc::Audio::CSettings::OutMax) const;
|
||||
//! @}
|
||||
|
||||
@@ -80,6 +81,9 @@ namespace BlackGui
|
||||
//! Loopback toggled
|
||||
void onLoopbackToggled(bool loopback);
|
||||
|
||||
//! Disable audio effects disable
|
||||
void onDisableAudioEffectsToggled(bool disabled);
|
||||
|
||||
//! Audio device lists from settings
|
||||
void initAudioDeviceLists();
|
||||
|
||||
@@ -95,6 +99,16 @@ namespace BlackGui
|
||||
void onOutputVU(double vu);
|
||||
void onInputVU(double vu);
|
||||
|
||||
void onReloadDevices();
|
||||
|
||||
void onResetVolumeIn();
|
||||
void onResetVolumeOut();
|
||||
|
||||
BlackMisc::Audio::CAudioDeviceInfo getSelectedInputDevice() const;
|
||||
BlackMisc::Audio::CAudioDeviceInfo getSelectedOutputDevice() const;
|
||||
|
||||
static BlackCore::Afv::Clients::CAfvClient *afvClient();
|
||||
|
||||
QScopedPointer<Ui::CAudioDeviceVolumeSetupComponent> ui;
|
||||
BlackMisc::CDigestSignal m_volumeSliderChanged { this, &CAudioDeviceVolumeSetupComponent::saveVolumes, 1000, 10 };
|
||||
BlackMisc::CSetting<BlackMisc::Audio::TSettings> m_audioSettings { this, &CAudioDeviceVolumeSetupComponent::reloadSettings };
|
||||
|
||||
Reference in New Issue
Block a user