mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 23:35:33 +08:00
Add audio device settings
Summary: Up to now, the audio device settings were not persistent. With this commit, the last audio device will be restored after application start. Reviewers: kbasan, msutcliffe Reviewed By: msutcliffe Differential Revision: https://dev.swift-project.org/D7
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f0bfad40b7
commit
862794cb02
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackmisc/audio/audiosettings.h"
|
||||
#include <QString>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
@@ -28,6 +29,21 @@ namespace BlackCore
|
||||
//! \copydoc BlackMisc::TSettingTrait::isValid
|
||||
static bool isValid(const BlackMisc::Audio::CSettings &value) { Q_UNUSED(value); return true; }
|
||||
};
|
||||
|
||||
//! Audio input device settings
|
||||
struct TInputDevice : public BlackMisc::TSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/inputdevice"; }
|
||||
};
|
||||
|
||||
//! Audio input device settings
|
||||
struct TOutputDevice : public BlackMisc::TSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/outputdevice"; }
|
||||
};
|
||||
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user