mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-21 07:09:03 -04:00
SDRPostThread is better using try_push, restore previous audio-related code in DemodulatorInstance
This commit is contained in:
@@ -65,7 +65,7 @@ bool TuningCanvas::changed() {
|
||||
auto activeDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||
|
||||
long long current_freq = 0;
|
||||
if (activeDemod != NULL) {
|
||||
if (activeDemod != nullptr) {
|
||||
freq = activeDemod->getFrequency();
|
||||
}
|
||||
long long current_bw = wxGetApp().getDemodMgr().getLastBandwidth();
|
||||
@@ -96,7 +96,7 @@ void TuningCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
|
||||
auto activeDemod = wxGetApp().getDemodMgr().getLastActiveDemodulator();
|
||||
|
||||
freq = 0;
|
||||
if (activeDemod != NULL) {
|
||||
if (activeDemod != nullptr) {
|
||||
freq = activeDemod->getFrequency();
|
||||
}
|
||||
bw = wxGetApp().getDemodMgr().getLastBandwidth();
|
||||
|
||||
Reference in New Issue
Block a user