mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2024-11-26 21:58:37 -05:00
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:
parent
1fed3b7480
commit
00c0693574
@ -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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user