comparison examples/ZeroCrossing.cpp @ 47:be8fdfe25693

* Change input buffers arg to process from float ** to const float *const * to avoid plugins modifying their input data * Some improvements to comments * Fix stupidity in frequency-domain input passing (there are n/2+1 values, not n/2)
author cannam
date Fri, 08 Dec 2006 17:39:32 +0000
parents 3bbe244611bb
children aa64a46320d4
comparison
equal deleted inserted replaced
46:2858c897d90f 47:be8fdfe25693
128 128
129 return list; 129 return list;
130 } 130 }
131 131
132 ZeroCrossing::FeatureSet 132 ZeroCrossing::FeatureSet
133 ZeroCrossing::process(float **inputBuffers, Vamp::RealTime timestamp) 133 ZeroCrossing::process(const float *const *inputBuffers,
134 Vamp::RealTime timestamp)
134 { 135 {
135 if (m_stepSize == 0) { 136 if (m_stepSize == 0) {
136 cerr << "ERROR: ZeroCrossing::process: " 137 cerr << "ERROR: ZeroCrossing::process: "
137 << "ZeroCrossing has not been initialised" 138 << "ZeroCrossing has not been initialised"
138 << endl; 139 << endl;