From fab53920b9446f718967994eacf63e066181c9b1 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Fri, 1 Feb 2019 10:16:33 -0500 Subject: [PATCH] Fixed #107: foxcom should be protected for only when we're using the dtmf tone generator --- Modulator.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modulator.cpp b/Modulator.cpp index 5db3b0b..c467a4a 100644 --- a/Modulator.cpp +++ b/Modulator.cpp @@ -291,7 +291,9 @@ qint64 Modulator::readData (char * data, qint64 maxSize) if (m_ic > i1) m_amp = 0.0; sample=qRound(m_amp*qSin(m_phi)); +#if TEST_FOX_WAVE_GEN if(m_toneSpacing < 0) sample=qRound(m_amp*foxcom_.wave[m_ic]); +#endif samples = load(postProcessSample(sample), samples); ++framesGenerated; ++m_ic;