Mercurial > hg > qm-dsp
comparison dsp/signalconditioning/DFProcess.cpp @ 283:5e125f030287
* Fixes to problems shown up by vamp-plugin-tester.
Still not all plugins pass all tests, though
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Mon, 23 Mar 2009 16:28:53 +0000 |
parents | 330c2e11f8a9 |
children | 769da847732b |
comparison
equal
deleted
inserted
replaced
282:2703b3437aee | 283:5e125f030287 |
---|---|
68 delete m_FiltFilt; | 68 delete m_FiltFilt; |
69 } | 69 } |
70 | 70 |
71 void DFProcess::process(double *src, double* dst) | 71 void DFProcess::process(double *src, double* dst) |
72 { | 72 { |
73 if (m_length == 0) return; | |
74 | |
73 removeDCNormalize( src, filtSrc ); | 75 removeDCNormalize( src, filtSrc ); |
74 | 76 |
75 m_FiltFilt->process( filtSrc, filtDst, m_length ); | 77 m_FiltFilt->process( filtSrc, filtDst, m_length ); |
76 | 78 |
77 medianFilter( filtDst, dst ); | 79 medianFilter( filtDst, dst ); |