[experimental, audio] try to avoid taskbar MIC flickering

* sometimes the MIC icon in the windows task bar is flickering (on/off)
* this workaround tries to avoid this
This commit is contained in:
Klaus Basan
2020-01-29 23:07:49 +01:00
committed by Mat Sutcliffe
parent b9c6541a55
commit 1266ca53ce
3 changed files with 15 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
#include "blackcore/webdataservices.h"
#include "blackcore/context/contextnetwork.h"
#include "blackcore/context/contextsimulator.h"
#include "blacksound/audioutilities.h"
#include "blackmisc/network/networkutils.h"
#include "blackmisc/loghandler.h"
#include "blackmisc/logmessage.h"
@@ -72,9 +73,11 @@ void SwiftGuiStd::init()
m_mwaStatusBar = &m_statusBar;
m_mwaOverlayFrame = ui->fr_CentralFrameInside;
m_mwaLogComponent = ui->comp_MainInfoArea->getLogComponent();
sGui->initMainApplicationWidget(this);
// experimental: avoid mic flickering
if (CBuildConfig::isLocalDeveloperDebugBuild()) { BlackSound::occupyAudioInputDevice(); }
// log messages
m_logSubscriber.changeSubscription(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));