[AFV] Ref T730, bring back swift PTT click sounds

This commit is contained in:
Klaus Basan
2019-10-17 17:43:31 +02:00
parent c054f4d307
commit 3a469d4654
2 changed files with 5 additions and 6 deletions

View File

@@ -69,7 +69,7 @@ namespace BlackSound
this->updateEffect(CNotificationSounds::NotificationTextCallsignMentioned, directory, "callsignmentioned.wav");
this->updateEffect(CNotificationSounds::NotificationNoAudioTransmission, directory, "noaudiotransmission.wav");
this->updateEffect(CNotificationSounds::PTTBlocked, directory, "pttblocked.wav");
this->updateEffect(CNotificationSounds::PTTClickKeyDown, directory, SampleProvider::Samples::fnClick());
this->updateEffect(CNotificationSounds::PTTClickKeyDown, directory, "pttclick.wav");
this->updateEffect(CNotificationSounds::PTTClickKeyUp, directory, "pttclick.wav");
}

View File

@@ -311,7 +311,7 @@ void SwiftGuiStd::onConnectionStatusChanged(const CConnectionStatus &from, const
// sounds
switch (to.getConnectionStatus())
{
case CConnectionStatus::Connected: this->playNotifcationSound(CNotificationSounds::NotificationLogin); break;
case CConnectionStatus::Connected: this->playNotifcationSound(CNotificationSounds::NotificationLogin); break;
case CConnectionStatus::Disconnected: this->playNotifcationSound(CNotificationSounds::NotificationLogoff); break;
default: break;
}
@@ -543,13 +543,12 @@ void SwiftGuiStd::displayNetworkSettings()
void SwiftGuiStd::onPttChanged(bool enabled)
{
Q_UNUSED(enabled)
if (!sGui || !sGui->getIContextAudio()) { return; }
if (!sGui || !sGui->getCContextAudioBase()) { return; }
/** wit AFV no longer play
sGui->getIContextAudio()->playNotification(
// based on user request still play with AFV
sGui->getCContextAudioBase()->playNotification(
enabled ? CNotificationSounds::PTTClickKeyDown : CNotificationSounds::PTTClickKeyUp,
true);
**/
}
void SwiftGuiStd::displayDBusReconnectDialog()