mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +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::NotificationTextCallsignMentioned, directory, "callsignmentioned.wav");
|
||||||
this->updateEffect(CNotificationSounds::NotificationNoAudioTransmission, directory, "noaudiotransmission.wav");
|
this->updateEffect(CNotificationSounds::NotificationNoAudioTransmission, directory, "noaudiotransmission.wav");
|
||||||
this->updateEffect(CNotificationSounds::PTTBlocked, directory, "pttblocked.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");
|
this->updateEffect(CNotificationSounds::PTTClickKeyUp, directory, "pttclick.wav");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ void SwiftGuiStd::onConnectionStatusChanged(const CConnectionStatus &from, const
|
|||||||
// sounds
|
// sounds
|
||||||
switch (to.getConnectionStatus())
|
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;
|
case CConnectionStatus::Disconnected: this->playNotifcationSound(CNotificationSounds::NotificationLogoff); break;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
@@ -543,13 +543,12 @@ void SwiftGuiStd::displayNetworkSettings()
|
|||||||
void SwiftGuiStd::onPttChanged(bool enabled)
|
void SwiftGuiStd::onPttChanged(bool enabled)
|
||||||
{
|
{
|
||||||
Q_UNUSED(enabled)
|
Q_UNUSED(enabled)
|
||||||
if (!sGui || !sGui->getIContextAudio()) { return; }
|
if (!sGui || !sGui->getCContextAudioBase()) { return; }
|
||||||
|
|
||||||
/** wit AFV no longer play
|
// based on user request still play with AFV
|
||||||
sGui->getIContextAudio()->playNotification(
|
sGui->getCContextAudioBase()->playNotification(
|
||||||
enabled ? CNotificationSounds::PTTClickKeyDown : CNotificationSounds::PTTClickKeyUp,
|
enabled ? CNotificationSounds::PTTClickKeyDown : CNotificationSounds::PTTClickKeyUp,
|
||||||
true);
|
true);
|
||||||
**/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwiftGuiStd::displayDBusReconnectDialog()
|
void SwiftGuiStd::displayDBusReconnectDialog()
|
||||||
|
|||||||
Reference in New Issue
Block a user