mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2025-02-03 09:44:26 -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_GC_LIMIT 100
|
||||||
#define REBUFFER_WARNING_THRESHOLD 150
|
#define REBUFFER_WARNING_THRESHOLD 2000
|
||||||
|
|
||||||
template<typename BufferType>
|
template<typename BufferType>
|
||||||
class ReBuffer {
|
class ReBuffer {
|
||||||
|
@ -64,7 +64,7 @@ DemodulatorInstance::DemodulatorInstance() {
|
|||||||
pipeIQInputData = std::make_shared<DemodulatorThreadInputQueue>();
|
pipeIQInputData = std::make_shared<DemodulatorThreadInputQueue>();
|
||||||
pipeIQInputData->set_max_num_items(100);
|
pipeIQInputData->set_max_num_items(100);
|
||||||
pipeIQDemodData = std::make_shared< DemodulatorThreadPostInputQueue>();
|
pipeIQDemodData = std::make_shared< DemodulatorThreadPostInputQueue>();
|
||||||
pipeIQInputData->set_max_num_items(100);
|
pipeIQDemodData->set_max_num_items(100);
|
||||||
|
|
||||||
audioThread = new AudioThread();
|
audioThread = new AudioThread();
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ DemodulatorInstance::DemodulatorInstance() {
|
|||||||
demodulatorPreThread->setOutputQueue("IQDataOutput",pipeIQDemodData);
|
demodulatorPreThread->setOutputQueue("IQDataOutput",pipeIQDemodData);
|
||||||
|
|
||||||
pipeAudioData = std::make_shared<AudioThreadInputQueue>();
|
pipeAudioData = std::make_shared<AudioThreadInputQueue>();
|
||||||
pipeAudioData->set_max_num_items(10);
|
pipeAudioData->set_max_num_items(100);
|
||||||
|
|
||||||
threadQueueControl = std::make_shared<DemodulatorThreadControlCommandQueue>();
|
threadQueueControl = std::make_shared<DemodulatorThreadControlCommandQueue>();
|
||||||
threadQueueControl->set_max_num_items(2);
|
threadQueueControl->set_max_num_items(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user