mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
refs #892, disable audio settings when no audio context is available
* Info for which machine audio setup is displayed * Obtain audio "location" * Remark: Audio can run on core and in GUI which is different from other contexts
This commit is contained in:
committed by
Mathew Sutcliffe
parent
891b67eccc
commit
7203655a05
@@ -24,7 +24,6 @@
|
||||
class QWidget;
|
||||
|
||||
namespace Ui { class CAudioSetupComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
@@ -40,7 +39,7 @@ namespace BlackGui
|
||||
explicit CAudioSetupComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CAudioSetupComponent();
|
||||
virtual ~CAudioSetupComponent();
|
||||
|
||||
//! Play notification sounds (at all)
|
||||
bool playNotificationSounds() const;
|
||||
@@ -49,10 +48,8 @@ namespace BlackGui
|
||||
//! Reload settings
|
||||
void ps_reloadSettings();
|
||||
|
||||
/*!
|
||||
* \brief Audio device selected
|
||||
* \param index audio device index (COM1, COM2)
|
||||
*/
|
||||
//! Audio device selected
|
||||
//! \param index audio device index (COM1, COM2)
|
||||
void ps_audioDeviceSelected(int index);
|
||||
|
||||
//! Current audio devices changed
|
||||
@@ -71,6 +68,9 @@ namespace BlackGui
|
||||
//! Audio device lists from settings
|
||||
void initAudioDeviceLists();
|
||||
|
||||
//! Audio is optional, check if available
|
||||
bool hasAudio() const;
|
||||
|
||||
QScopedPointer<Ui::CAudioSetupComponent> ui;
|
||||
BlackMisc::CSetting<BlackCore::Audio::TSettings> m_audioSettings { this, &CAudioSetupComponent::ps_reloadSettings };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user