mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T730, Ref T739 avoid timer stopping issue during shutdown
* use timer with parent * avoid QObject::~QObject: Timers cannot be stopped from another thread * see https://discordapp.com/channels/539048679160676382/623947987822837779/630521007056224286
This commit is contained in:
committed by
Mat Sutcliffe
parent
b0f1f5fae4
commit
713d2ee626
@@ -81,10 +81,8 @@ namespace BlackCore
|
||||
QString m_type;
|
||||
bool m_inUse = false;
|
||||
|
||||
bool m_bypassEffects = false;
|
||||
|
||||
bool m_bypassEffects = false;
|
||||
float m_distanceRatio = 1.0;
|
||||
|
||||
const CReceiverSampleProvider *m_receiver = nullptr;
|
||||
BlackSound::SampleProvider::CMixingSampleProvider *m_mixer = nullptr;
|
||||
BlackSound::SampleProvider::CResourceSoundSampleProvider *m_crackleSoundProvider = nullptr;
|
||||
@@ -94,7 +92,7 @@ namespace BlackCore
|
||||
BlackSound::SampleProvider::CSimpleCompressorEffect *m_simpleCompressorEffect = nullptr;
|
||||
BlackSound::SampleProvider::CEqualizerSampleProvider *m_voiceEq = nullptr;
|
||||
BlackSound::SampleProvider::CBufferedWaveProvider *m_audioInput = nullptr;
|
||||
QTimer m_timer;
|
||||
QTimer *m_timer = nullptr;
|
||||
|
||||
BlackSound::Codecs::COpusDecoder m_decoder;
|
||||
bool m_lastPacketLatch = false;
|
||||
|
||||
Reference in New Issue
Block a user