summaryrefslogtreecommitdiff
path: root/map65/mainwindow.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-10-14 14:39:32 +0200
committerChristoph Berg <myon@debian.org>2026-10-14 14:39:32 +0200
commitcc627cc2a9a66014fa25c4c2c81c1b26833564e4 (patch)
tree47f39d2c2d0f7228a5c9dd91c1b7213471272d21 /map65/mainwindow.cpp
parent95a9df4014710930dc3011546ca0673e7531c1ce (diff)
parentc576a4281ef8c87990ae6399393a827dfaccacd5 (diff)
Update upstream source from tag 'upstream/3.3.0_beta2+dfsg'
Update to upstream version '3.3.0~beta2+dfsg' with Debian dir 2b24afa6aafe083cbcb475061c2678a067f4608b
Diffstat (limited to 'map65/mainwindow.cpp')
-rw-r--r--map65/mainwindow.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/map65/mainwindow.cpp b/map65/mainwindow.cpp
index e9a0e6d6..5e88572e 100644
--- a/map65/mainwindow.cpp
+++ b/map65/mainwindow.cpp
@@ -157,12 +157,14 @@ MainWindow::MainWindow(QWidget *parent) :
std::cout << "ss pointer set to: " << ss << std::endl;
set_savg_ptr(savg, 4, active_nfft);
std::cout << "savg pointer set to: " << savg << std::endl;
- dd_old = new float[ddSize];
- set_dd_old_ptr(dd_old, channels, pairsWorst);
- ss_old = new float[4 * 322 * active_nfft];
- savg_old = new float[4 * active_nfft];
- set_ss_old_ptr(ss_old, 4, 322, active_nfft);
- set_savg_old_ptr(savg_old, 4, active_nfft);
+ // Two snapshot sets, one per automatic decode pass (1 = nhsym 280, 2 = nhsym 302).
+ // They are filled in dataSink() at each trigger; see snapshot_buffers().
+ for (int idx = 1; idx <= 2; idx++) {
+ float* sdd = new float[ddSize]();
+ float* sss = new float[4 * 322 * active_nfft]();
+ float* ssavg = new float[4 * active_nfft]();
+ set_snap_ptr(idx, sdd, sss, ssavg, pairsWorst, active_nfft);
+ }
qDebug() << "MAINWINDOW created dd ss savg ";
@@ -1302,6 +1304,7 @@ void MainWindow::dataSink(int k)
setNewdat(1);
setNagain(0);
setNhsym(280);
+ snapshot_buffers(1, k, 280); //Freeze this pass's data now
QDateTime t = QDateTime::currentDateTimeUtc();
m_dateTime=t.toString("yyyy-MMM-dd hh:mm");
decode(); //Start the decoder
@@ -1314,6 +1317,7 @@ void MainWindow::dataSink(int k)
setNewdat(1);
setNagain(0);
setNhsym(302);
+ snapshot_buffers(2, k, 302); //Freeze this pass's data now
QDateTime t = QDateTime::currentDateTimeUtc();
m_dateTime=t.toString("yyyy-MMM-dd hh:mm");
decode(); //Start the decoder