comparison vamp-sdk/PluginHostAdapter.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 154f86cb8c99
children aa64a46320d4
comparison
equal deleted inserted replaced
46:2858c897d90f 47:be8fdfe25693
333 333
334 return list; 334 return list;
335 } 335 }
336 336
337 PluginHostAdapter::FeatureSet 337 PluginHostAdapter::FeatureSet
338 PluginHostAdapter::process(float **inputBuffers, 338 PluginHostAdapter::process(const float *const *inputBuffers,
339 RealTime timestamp) 339 RealTime timestamp)
340 { 340 {
341 FeatureSet fs; 341 FeatureSet fs;
342 if (!m_handle) return fs; 342 if (!m_handle) return fs;
343 343
344 int sec = timestamp.sec; 344 int sec = timestamp.sec;