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:
Klaus Basan
2019-10-07 18:07:14 +02:00
committed by Mat Sutcliffe
parent b0f1f5fae4
commit 713d2ee626
4 changed files with 32 additions and 23 deletions

View File

@@ -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;