mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
[AFV] Ref T730, bring back swift PTT click sounds
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user