Skip to content

Commit ddee72d

Browse files
authored
Merge pull request #50 from jj1bdx/dev-agcfix
AM Decoder AGC fix * To avoid output clipping in AM/CW/USB/LSB/WSPR reception * To lower generating clicking sound on CW and smoother SSB reception
2 parents 5ce8aec + c1bc9b0 commit ddee72d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sfmbase/AmDecode.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ AmDecoder::AmDecoder(IQSampleCoeff &amfilter_coeff, const ModType mode)
5656
// reference
5757
((m_mode == ModType::USB) || (m_mode == ModType::LSB) ||
5858
(m_mode == ModType::CW) || (m_mode == ModType::WSPR))
59-
? 0.32
59+
? 0.24
6060
// default value
61-
: 0.8,
61+
: 0.6,
6262
// rate
6363
((m_mode == ModType::CW) || (m_mode == ModType::WSPR))
6464
? 0.00125
@@ -72,9 +72,9 @@ AmDecoder::AmDecoder(IQSampleCoeff &amfilter_coeff, const ModType mode)
7272
1000000.0, // max_gain
7373
// rate
7474
((m_mode == ModType::CW) || (m_mode == ModType::WSPR))
75-
? 0.001
75+
? 0.0006
7676
// default value
77-
: 0.0005)
77+
: 0.0003)
7878

7979
// fine tuner for CW pitch shifting (shift up 500Hz)
8080
// sampling rate: 12kHz

0 commit comments

Comments
 (0)