Skip to content

Commit

Permalink
Remove the pre- and de-emphasis and the downsampler.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Apr 30, 2020
1 parent 92a4db9 commit 5b32fec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions FM.cpp
Expand Up @@ -83,8 +83,8 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)

// Only let audio through when relaying audio
if (m_state == FS_RELAYING || m_state == FS_KERCHUNK) {
currentSample = m_deemphasis.filter(currentSample);
m_downsampler.addSample(currentSample);
// currentSample = m_deemphasis.filter(currentSample);
// m_downsampler.addSample(currentSample);
currentSample = m_blanking.process(currentSample);
currentSample *= m_rfAudioBoost;
} else {
Expand All @@ -106,7 +106,7 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)

currentSample = m_filterStage3.filter(m_filterStage2.filter(m_filterStage1.filter(currentSample)));

currentSample = m_preemphasis.filter(currentSample);
// currentSample = m_preemphasis.filter(currentSample);

currentSample += m_ctcssTX.getAudio();

Expand Down
2 changes: 1 addition & 1 deletion SerialPort.cpp
Expand Up @@ -101,7 +101,7 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
#define HW_TYPE "MMDVM"
#endif

#define DESCRIPTION "20200429 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)"
#define DESCRIPTION "20200430 (D-Star/DMR/System Fusion/P25/NXDN/POCSAG/FM)"

#if defined(GITVERSION)
#define concat(h, a, b, c) h " " a " " b " GitID #" c ""
Expand Down

0 comments on commit 5b32fec

Please sign in to comment.