mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
[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:
committed by
Mat Sutcliffe
parent
b9c6541a55
commit
1266ca53ce
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user