diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index 647e9a6..1f01055 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -64,6 +64,7 @@ AppFrame::AppFrame() : delete t_SDR; t_SDR = NULL; } + t_SDR->SetPriority(80); threadQueueAudio = new AudioThreadQueue(this); t_Audio = new AudioThread(threadQueueAudio); @@ -73,6 +74,7 @@ AppFrame::AppFrame() : delete t_Audio; t_Audio = NULL; } + t_Audio->SetPriority(80); demodulatorTest = demodMgr.newThread(this); demodulatorTest->params.audioQueue = threadQueueAudio; @@ -162,6 +164,8 @@ void AppFrame::OnThread(wxCommandEvent& event) { void AppFrame::OnIdle(wxIdleEvent& event) { + Sleep(10); + event.Skip(); } diff --git a/src/demod/DemodulatorMgr.h b/src/demod/DemodulatorMgr.h index 5b5113a..d27c472 100644 --- a/src/demod/DemodulatorMgr.h +++ b/src/demod/DemodulatorMgr.h @@ -29,7 +29,6 @@ public: bool run() { init(); - if (t_Demod->Run() != wxTHREAD_NO_ERROR) { wxLogError ("Can't create the Demodulator thread!"); @@ -39,6 +38,7 @@ public: threadQueueDemod = NULL; return false; } + t_Demod->SetPriority(80); return true; }