mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
[AFV] Ref T730, use "%Application%" to split audio settings among core and UI
* both can have independent settings * user report hanging core - this seems to fix it
This commit is contained in:
@@ -22,7 +22,7 @@ namespace BlackCore
|
||||
struct TInputDevice : public BlackMisc::TSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/inputdevice"; }
|
||||
static const char *key() { return "audio/%Application%/inputdevice"; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||
static const QString &humanReadable() { static const QString name("Input device"); return name; }
|
||||
@@ -35,7 +35,7 @@ namespace BlackCore
|
||||
struct TOutputDevice : public BlackMisc::TSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/outputdevice"; }
|
||||
static const char *key() { return "audio/%Application%/outputdevice"; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||
static const QString &humanReadable() { static const QString name("Output device"); return name; }
|
||||
|
||||
@@ -138,7 +138,7 @@ namespace BlackMisc
|
||||
struct TSettings : public TSettingTrait<CSettings>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/setup"; }
|
||||
static const char *key() { return "audio/%Application%/setup"; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||
static const QString &humanReadable() { static const QString name("Audio"); return name; }
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace BlackMisc
|
||||
struct TVoiceSetup : public TSettingTrait<CVoiceSetup>
|
||||
{
|
||||
//! \copydoc BlackMisc::TSettingTrait::key
|
||||
static const char *key() { return "audio/currentvoicesetup"; }
|
||||
static const char *key() { return "audio/%Application%/currentvoicesetup"; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||
static const QString &humanReadable() { static const QString name("Voice setup"); return name; }
|
||||
|
||||
Reference in New Issue
Block a user