mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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
@@ -142,13 +142,13 @@ namespace BlackCore
|
||||
virtual bool isMuted() const = 0;
|
||||
|
||||
//! Play SELCAL tone
|
||||
virtual void playSelcalTone(const BlackMisc::Aviation::CSelcal &selcal) const = 0;
|
||||
virtual void playSelcalTone(const BlackMisc::Aviation::CSelcal &selcal) = 0;
|
||||
|
||||
//! Play notification sound
|
||||
//! \param notification CSoundGenerator::Notification
|
||||
//! \param considerSettings consider settings (notification on/off), false means settings ignored
|
||||
//! \param volume 0..100
|
||||
virtual void playNotification(BlackMisc::Audio::CNotificationSounds::NotificationFlag notification, bool considerSettings, int volume = -1) const = 0;
|
||||
virtual void playNotification(BlackMisc::Audio::CNotificationSounds::NotificationFlag notification, bool considerSettings, int volume = -1) = 0;
|
||||
|
||||
//! Enable audio loopback
|
||||
virtual void enableAudioLoopback(bool enable = true) = 0;
|
||||
|
||||
Reference in New Issue
Block a user