Perseus: do a full start/stop when changing sample rate

pull/147/head
f4exb 2018-02-15 00:48:51 +01:00
rodzic db6cfe2257
commit 5f91db13da
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -381,8 +381,8 @@ bool PerseusInput::applySettings(const PerseusSettings& settings, bool force)
{
if (m_perseusThread && m_perseusThread->isRunning())
{
m_perseusThread->stopWork();
m_perseusThread->startWork();
stop();
start();
}
}

Wyświetl plik

@ -39,6 +39,7 @@ PerseusThread::~PerseusThread()
void PerseusThread::startWork()
{
qDebug("PerseusThread::startWork");
m_startWaitMutex.lock();
start();
while(!m_running)