SDRPostThread is better using try_push, restore previous audio-related code in DemodulatorInstance

This commit is contained in:
vsonnier
2017-09-02 16:24:25 +02:00
parent 87077a89c1
commit 030628c5ed
3 changed files with 18 additions and 20 deletions
+2 -2
View File
@@ -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();