mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Ref T730, adjusted audio settings for new notification sounds
* utility functions, find most appropriate file * PTT blocked, removed voice rooms
This commit is contained in:
committed by
Mat Sutcliffe
parent
e33e06b21e
commit
b207c9c944
@@ -70,6 +70,14 @@ namespace BlackMisc
|
||||
//! Notification directory
|
||||
const QString &getNotificationSoundDirectory() const { return m_notificationSoundDir; }
|
||||
|
||||
//! get existing notifcation settings directory or default swift directory
|
||||
const QString &getNotificationSoundDirectoryOrDefault() const;
|
||||
|
||||
//! Get existing file path for the given file path, either in the settings specific or default dir
|
||||
//! \remark pass file only, like "foo.wav"
|
||||
//! \return complete path like "/mydir/foo.wav" or empty if file not exists
|
||||
QString getNotificationFilePath(const QString &fileName) const;
|
||||
|
||||
//! Set volume (notifications)
|
||||
void setNotificationVolume(int volume);
|
||||
|
||||
@@ -129,7 +137,11 @@ namespace BlackMisc
|
||||
static const QString &humanReadable() { static const QString name("Audio"); return name; }
|
||||
|
||||
//! \copydoc BlackMisc::TSettingTrait::isValid
|
||||
static bool isValid(const BlackMisc::Audio::CSettings &value, QString &) { Q_UNUSED(value); return true; }
|
||||
static bool isValid(const BlackMisc::Audio::CSettings &value, QString &)
|
||||
{
|
||||
Q_UNUSED(value)
|
||||
return true;
|
||||
}
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user