From 00c0693574a722488c820a8db189858d9a1e9d16 Mon Sep 17 00:00:00 2001 From: vsonnier Date: Fri, 31 Aug 2018 20:21:27 +0200 Subject: [PATCH] Fix #675 cut-n-paste giving wrong demod data queue (thanks @GkvJeep) plus boost of AudioThread queue size to prevent stuttering at very high CPU loads --- src/IOThread.h | 2 +- src/demod/DemodulatorInstance.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IOThread.h b/src/IOThread.h index 20455f3..6091c8c 100644 --- a/src/IOThread.h +++ b/src/IOThread.h @@ -40,7 +40,7 @@ public: }; #define REBUFFER_GC_LIMIT 100 -#define REBUFFER_WARNING_THRESHOLD 150 +#define REBUFFER_WARNING_THRESHOLD 2000 template class ReBuffer { diff --git a/src/demod/DemodulatorInstance.cpp b/src/demod/DemodulatorInstance.cpp index 94ec0cd..9620ec3 100644 --- a/src/demod/DemodulatorInstance.cpp +++ b/src/demod/DemodulatorInstance.cpp @@ -64,7 +64,7 @@ DemodulatorInstance::DemodulatorInstance() { pipeIQInputData = std::make_shared(); pipeIQInputData->set_max_num_items(100); pipeIQDemodData = std::make_shared< DemodulatorThreadPostInputQueue>(); - pipeIQInputData->set_max_num_items(100); + pipeIQDemodData->set_max_num_items(100); audioThread = new AudioThread(); @@ -73,7 +73,7 @@ DemodulatorInstance::DemodulatorInstance() { demodulatorPreThread->setOutputQueue("IQDataOutput",pipeIQDemodData); pipeAudioData = std::make_shared(); - pipeAudioData->set_max_num_items(10); + pipeAudioData->set_max_num_items(100); threadQueueControl = std::make_shared(); threadQueueControl->set_max_num_items(2);