mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +08:00
Do not play QSoundEffect while it is still playing
* added m_playEffect as flag * hooked up signals to reset the flags
This commit is contained in:
committed by
Mat Sutcliffe
parent
55f70a794e
commit
d944d0f6ee
@@ -478,7 +478,7 @@ namespace BlackCore
|
||||
return this->getIContextNetwork()->getUsersForCallsigns(this->getRoomCallsigns(comUnit));
|
||||
}
|
||||
|
||||
void CContextAudio::playSelcalTone(const CSelcal &selcal) const
|
||||
void CContextAudio::playSelcalTone(const CSelcal &selcal)
|
||||
{
|
||||
Q_ASSERT(m_voice);
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << selcal; }
|
||||
@@ -496,7 +496,7 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
void CContextAudio::playNotification(CNotificationSounds::NotificationFlag notification, bool considerSettings, int volume) const
|
||||
void CContextAudio::playNotification(CNotificationSounds::NotificationFlag notification, bool considerSettings, int volume)
|
||||
{
|
||||
Q_ASSERT(m_voice);
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << notification; }
|
||||
|
||||
Reference in New Issue
Block a user