Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/PluginAdapter.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 | ae3e47e76d2d |
children | aa64a46320d4 |
comparison
equal
deleted
inserted
replaced
46:2858c897d90f | 47:be8fdfe25693 |
---|---|
421 free((void *)desc); | 421 free((void *)desc); |
422 } | 422 } |
423 | 423 |
424 VampFeatureList * | 424 VampFeatureList * |
425 PluginAdapterBase::vampProcess(VampPluginHandle handle, | 425 PluginAdapterBase::vampProcess(VampPluginHandle handle, |
426 float **inputBuffers, | 426 const float *const *inputBuffers, |
427 int sec, | 427 int sec, |
428 int nsec) | 428 int nsec) |
429 { | 429 { |
430 #ifdef DEBUG_PLUGIN_ADAPTER | 430 #ifdef DEBUG_PLUGIN_ADAPTER |
431 std::cerr << "PluginAdapterBase::vampProcess(" << handle << ", " << sec << ", " << nsec << ")" << std::endl; | 431 std::cerr << "PluginAdapterBase::vampProcess(" << handle << ", " << sec << ", " << nsec << ")" << std::endl; |
569 return desc; | 569 return desc; |
570 } | 570 } |
571 | 571 |
572 VampFeatureList * | 572 VampFeatureList * |
573 PluginAdapterBase::process(Plugin *plugin, | 573 PluginAdapterBase::process(Plugin *plugin, |
574 float **inputBuffers, | 574 const float *const *inputBuffers, |
575 int sec, int nsec) | 575 int sec, int nsec) |
576 { | 576 { |
577 // std::cerr << "PluginAdapterBase::process" << std::endl; | 577 // std::cerr << "PluginAdapterBase::process" << std::endl; |
578 RealTime rt(sec, nsec); | 578 RealTime rt(sec, nsec); |
579 checkOutputMap(plugin); | 579 checkOutputMap(plugin); |