diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:28 +0200 |
| commit | 69344560ea394c06ca94acac46a2e4c3e8b7b229 (patch) | |
| tree | ebc98370a697a9bbd6b973a14fa5113c475c6db7 /Transceiver/TransceiverBase.cpp | |
| parent | 3e9d10a67671d0bd5c7b8c3ca8088f1818322eff (diff) | |
| parent | 059831534c7e884f0a607ed86b582fd00d821731 (diff) | |
Update upstream source from tag 'upstream/3.2.0_rc1+dfsg'
Update to upstream version '3.2.0~rc1+dfsg'
with Debian dir dbff457fd2c3616d5c77b863c7bfb2186ed86047
Diffstat (limited to 'Transceiver/TransceiverBase.cpp')
| -rw-r--r-- | Transceiver/TransceiverBase.cpp | 19 |
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 |
