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

This commit is contained in:
vsonnier 2018-08-31 20:21:27 +02:00
parent 1fed3b7480
commit 00c0693574
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public:
};
#define REBUFFER_GC_LIMIT 100
#define REBUFFER_WARNING_THRESHOLD 150
#define REBUFFER_WARNING_THRESHOLD 2000
template<typename BufferType>
class ReBuffer {

View File

@ -64,7 +64,7 @@ DemodulatorInstance::DemodulatorInstance() {
pipeIQInputData = std::make_shared<DemodulatorThreadInputQueue>();
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<AudioThreadInputQueue>();
pipeAudioData->set_max_num_items(10);
pipeAudioData->set_max_num_items(100);
threadQueueControl = std::make_shared<DemodulatorThreadControlCommandQueue>();
threadQueueControl->set_max_num_items(2);