[AFV] Ref T730, allow to set AFV notifcation sounds in AFV settings

This commit is contained in:
Klaus Basan
2019-10-17 19:58:48 +02:00
parent 7fdc2c3db3
commit 1fe2109a89
3 changed files with 85 additions and 52 deletions

View File

@@ -15,6 +15,7 @@
using namespace BlackMisc;
using namespace BlackMisc::Audio;
using namespace BlackSound::SampleProvider;
namespace BlackSound
{
@@ -44,7 +45,7 @@ namespace BlackSound
// used for too long or hanging sounds
QPointer<CNotificationPlayer> myself(this);
QTimer::singleShot(2000, effect, [ = ]
QTimer::singleShot(3000, effect, [ = ]
{
if (!myself || !m_playingEffect) { return; }
m_playingEffect->stop();
@@ -71,6 +72,9 @@ namespace BlackSound
this->updateEffect(CNotificationSounds::PTTBlocked, directory, "pttblocked.wav");
this->updateEffect(CNotificationSounds::PTTClickKeyDown, directory, "pttclick.wav");
this->updateEffect(CNotificationSounds::PTTClickKeyUp, directory, "pttclick.wav");
// CNotificationSounds::AFVBlocked is generated
this->updateEffect(CNotificationSounds::AFVClicked, directory, Samples::fnClick());
}
void CNotificationPlayer::onPlayingChanged()