Skip to content

Commit

Permalink
Use channel sample rate of 48k in RTTY and PSK31 mods, to reduce filt…
Browse files Browse the repository at this point in the history
…er taps at high baseband sample rates.
  • Loading branch information
srcejon committed Oct 27, 2023
1 parent 1d3c366 commit 7126fb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/channeltx/modpsk31/psk31modbaseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ void PSK31Baseband::applySettings(const PSK31Settings& settings, bool force)
{
if ((settings.m_inputFrequencyOffset != m_settings.m_inputFrequencyOffset) || force)
{
m_channelizer->setChannelization(m_channelizer->getChannelSampleRate(), settings.m_inputFrequencyOffset);
// Use fixed sample rate of 48000, so Cosine filter doesn't have a massive number of taps at high baseband sample rates (See #1862)
m_channelizer->setChannelization(48000, settings.m_inputFrequencyOffset);
m_source.applyChannelSettings(m_channelizer->getChannelSampleRate(), m_channelizer->getChannelFrequencyOffset());
}

Expand Down
3 changes: 2 additions & 1 deletion plugins/channeltx/modrtty/rttymodbaseband.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ void RttyModBaseband::applySettings(const RttyModSettings& settings, bool force)
{
if ((settings.m_inputFrequencyOffset != m_settings.m_inputFrequencyOffset) || force)
{
m_channelizer->setChannelization(m_channelizer->getChannelSampleRate(), settings.m_inputFrequencyOffset);
// Use fixed sample rate of 48000, so Cosine filter doesn't have a massive number of taps at high baseband sample rates (See #1862)
m_channelizer->setChannelization(48000, settings.m_inputFrequencyOffset);
m_source.applyChannelSettings(m_channelizer->getChannelSampleRate(), m_channelizer->getChannelFrequencyOffset());
}

Expand Down

0 comments on commit 7126fb9

Please sign in to comment.