1
Host Development / Hosting the vamp-example-plugins
« on: June 14, 2009, 13:06:11 »
Hi,
i don't know if it is the right section but i have a problem using the vamp-example power spectrum plugin in an application that i am writing.
i load it and use it that way (it's temporary code ) :
this way i get the values of the spectrum, but the first two values keep increasing over time, and don't seem to be related to the spectrum.
Am i doing something wrong ?
thanks
florent
i don't know if it is the right section but i have a problem using the vamp-example power spectrum plugin in an application that i am writing.
i load it and use it that way (it's temporary code ) :
Code: [Select]
loader = PluginLoader::getInstance();
key = loader->composePluginKey(pluginName, pluginID);
plugin = loader->loadPlugin(key, sampleRate, PluginLoader::ADAPT_ALL_SAFE);
outputs = plugin->getOutputDescriptors();
RealTime rt;
RealTime adjustment = RealTime::zeroTime;
if(!plugin->initialise(2, 64, 128))
{
cout<<"Error initializing analysis"<<endl;
}
Code: [Select]
RealTime rt;
Plugin::FeatureSet features=plugin->process((float**)(aae->getBuffers()),rt);
for (unsigned int j = 0; j < features[0][0].values.size(); ++j)
//here i get the values
this way i get the values of the spectrum, but the first two values keep increasing over time, and don't seem to be related to the spectrum.
Am i doing something wrong ?
thanks
florent