mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
Vamp::Plugins::process Lua bindings
This commit is contained in:
parent
0d2ccdd39c
commit
a51daedbe6
3 changed files with 28 additions and 2 deletions
|
|
@ -629,3 +629,13 @@ LuaAPI::Vamp::analyze (boost::shared_ptr<ARDOUR::Readable> r, uint32_t channel,
|
|||
delete [] data;
|
||||
return rv;
|
||||
}
|
||||
|
||||
::Vamp::Plugin::FeatureSet
|
||||
LuaAPI::Vamp::process (const std::vector<float*>& d, ::Vamp::RealTime rt)
|
||||
{
|
||||
if (!_plugin || d.size() == 0) {
|
||||
return ::Vamp::Plugin::FeatureSet ();
|
||||
}
|
||||
const float* const* bufs = &d[0];
|
||||
return _plugin->process (bufs, rt);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue