mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
[AFV] Ref T739, use the Audio base class with the shared CAfvClient functions
This commit is contained in:
@@ -196,7 +196,7 @@ namespace BlackGui
|
||||
// this is SELCAL for me
|
||||
if (playNotification)
|
||||
{
|
||||
sGui->getIContextAudio()->playSelcalTone(message.getSelcalCode());
|
||||
sGui->getCContextAudioBase()->playSelcalTone(message.getSelcalCode());
|
||||
}
|
||||
|
||||
if (msgSettings.popupSelcalMessages())
|
||||
@@ -231,7 +231,7 @@ namespace BlackGui
|
||||
// callsign mentioned notification
|
||||
if (relevantForMe && audioCsMentioned && ownAircraft.hasCallsign() && message.mentionsCallsign(ownAircraft.getCallsign()))
|
||||
{
|
||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::NotificationTextCallsignMentioned, false);
|
||||
sGui->getCContextAudioBase()->playNotification(CNotificationSounds::NotificationTextCallsignMentioned, false);
|
||||
}
|
||||
}
|
||||
else if (message.isPrivateMessage() && !message.isServerMessage())
|
||||
@@ -536,11 +536,11 @@ namespace BlackGui
|
||||
const CSettings settings = m_audioSettings.get();
|
||||
if (textMessage.isSupervisorMessage() && settings.textMessageSupervisor())
|
||||
{
|
||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::NotificationTextMessageSupervisor, true);
|
||||
sGui->getCContextAudioBase()->playNotification(CNotificationSounds::NotificationTextMessageSupervisor, true);
|
||||
}
|
||||
else if (textMessage.isPrivateMessage() && settings.textMessagePrivate())
|
||||
{
|
||||
sGui->getIContextAudio()->playNotification(CNotificationSounds::NotificationTextMessagePrivate, true);
|
||||
sGui->getCContextAudioBase()->playNotification(CNotificationSounds::NotificationTextMessagePrivate, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user