diff --git a/radio/tests/interpolation/farrow/test.cpp b/radio/tests/interpolation/farrow/test.cpp index 85d8eae..60de618 100644 --- a/radio/tests/interpolation/farrow/test.cpp +++ b/radio/tests/interpolation/farrow/test.cpp @@ -108,7 +108,7 @@ class TimingGeneratorGardner : public Interpolation::TimingGenerator virtual ~TimingGeneratorGardner() = default; - void process(ComplexScalar const &iq) + bool process(ComplexScalar const &iq) { // @2 x symbolrate // Symbol timing recovery @@ -124,6 +124,9 @@ class TimingGeneratorGardner : public Interpolation::TimingGenerator is_time = not is_time; update(m_dOmega); + + // Control producing of samples for decimatiion + return not is_time; } }; @@ -187,6 +190,8 @@ void test() remain -= size; n += size; } + + // Save timing aligned data @1sps wavSave("out.wav", header, iq_out); cout << "End of program" << endl;