summaryrefslogtreecommitdiff
path: root/Transceiver/TransceiverBase.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /Transceiver/TransceiverBase.cpp
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'Transceiver/TransceiverBase.cpp')
-rw-r--r--Transceiver/TransceiverBase.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/Transceiver/TransceiverBase.cpp b/Transceiver/TransceiverBase.cpp
index 72f6fafb..458eade5 100644
--- a/Transceiver/TransceiverBase.cpp
+++ b/Transceiver/TransceiverBase.cpp
@@ -78,10 +78,13 @@ void TransceiverBase::set (TransceiverState const& s,
audio_cmd = true;
requested_.blocksize (s.blocksize ());
}
- if (requested_.period() != s.period()) {
+ if (!period_applied_ || applied_period_ != s.period()) {
+ bool const had_applied_period {period_applied_};
do_period (s.period());
- audio_cmd = true;
requested_.period (s.period ());
+ applied_period_ = s.period ();
+ period_applied_ = true;
+ audio_cmd = audio_cmd || had_applied_period;
}
if (requested_.spread() != s.spread()) {
do_spread (s.spread());
@@ -105,14 +108,8 @@ void TransceiverBase::set (TransceiverState const& s,
}
if (requested_.tx_audio() != s.tx_audio()) {
if (s.tx_audio()) {
- do_modulator_start(s.jtmode(), s.symbolslength (), s.framespersymbol (), s.trfrequency (), s.tonespacing (), s.synchronize (),s.fastmode(), s.dbsnr (), s.trperiod ());
- requested_.symbolslength(s.symbolslength ());
- requested_.framespersymbol(s.framespersymbol ());
- requested_.trfrequency(s.trfrequency ());
- requested_.tonespacing(s.tonespacing ());
- requested_.synchronize(s.synchronize ());
- requested_.dbsnr(s.dbsnr ());
- requested_.trperiod(s.trperiod ());
+ do_modulator_start (s.tx_request ());
+ requested_.tx_request (s.tx_request ());
} else {
do_modulator_stop(s.quick ());
requested_.quick (s.quick ());
@@ -263,6 +260,8 @@ void TransceiverBase::shutdown ()
do_post_stop ();
actual_ = TransceiverState {};
requested_ = TransceiverState {};
+ period_applied_ = false;
+ applied_period_ = 0.0;
}
void TransceiverBase::stop () noexcept