- output WAV has no zeros at the end
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/cpp@977 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -91,9 +91,10 @@ void test()
|
||||
|
||||
// Setup IQ data
|
||||
WAVEHEADER header;
|
||||
// CVec iq_in = wavLoad("m2_12k_12k_i_q_short.wav", header);
|
||||
CVec iq_in = wavLoad("sine.wav", header);
|
||||
CVec iq_out(4*iq_in.size());
|
||||
CVec iq_in = wavLoad("m2_12k_12k_i_q_short.wav", header);
|
||||
// CVec iq_in = wavLoad("sine_220.wav", header);
|
||||
CVec iq_out;
|
||||
iq_out.reserve(8*iq_in.size());
|
||||
|
||||
// Loop-Filter
|
||||
lead_lag_filter_t loop_filter_str;
|
||||
@@ -123,10 +124,11 @@ void test()
|
||||
n += numFed;
|
||||
remain -= numFed;
|
||||
|
||||
farrow.process_new(0.9);
|
||||
farrow.process_new(0.333);
|
||||
while(farrow.getOutputBuffer().len())
|
||||
{
|
||||
size_t size = std::min(BLOCKSIZE, farrow.getOutputBuffer().len());
|
||||
iq_out.resize(k+size);
|
||||
for (size_t i=0; i < size; i++)
|
||||
{
|
||||
iq_out[k++] = farrow.getOutputBuffer().readAt(0);
|
||||
|
||||
Reference in New Issue
Block a user