- TimingGenerator tells Polyphase when to produce a sample
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@1060 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -86,10 +86,13 @@ public:
|
|||||||
// Polyphase filtering
|
// Polyphase filtering
|
||||||
uint32_t index = (uint32_t)dmod(dmax(0, mu*m_M), (RealScalar)m_M);
|
uint32_t index = (uint32_t)dmod(dmax(0, mu*m_M), (RealScalar)m_M);
|
||||||
ComplexScalar yout = m_fir.processReal(column(m_coeff, index));
|
ComplexScalar yout = m_fir.processReal(column(m_coeff, index));
|
||||||
buf_out->write(&yout, 1);
|
|
||||||
|
|
||||||
// Process timing generator
|
// Process timing generator
|
||||||
m_timingGenerator.process(yout);
|
bool is_sample = m_timingGenerator.process(yout);
|
||||||
|
if (is_sample)
|
||||||
|
{
|
||||||
|
buf_out->write(&yout, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user