mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
Ref T567, PTT click also on key up
* added sound * UI component
This commit is contained in:
committed by
Mat Sutcliffe
parent
754f70a4ed
commit
8c83020b92
@@ -443,7 +443,7 @@ namespace BlackCore
|
||||
const CSettings settings = m_audioSettings.getThreadLocal();
|
||||
const bool play = !considerSettings || settings.isNotificationFlagSet(notification);
|
||||
if (!play) { return; }
|
||||
if (notification == CNotificationSounds::PTTClick && (considerSettings && settings.noAudioTransmission()))
|
||||
if (notification == CNotificationSounds::PTTClickKeyDown && (considerSettings && settings.noAudioTransmission()))
|
||||
{
|
||||
if (!this->canTalk())
|
||||
{
|
||||
@@ -451,6 +451,7 @@ namespace BlackCore
|
||||
notification = CNotificationSounds::NotificationNoAudioTransmission;
|
||||
}
|
||||
}
|
||||
|
||||
CSoundGenerator::playNotificationSound(90, notification);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user