summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/lua_api.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-04 21:31:29 +0200
committerRobin Gareus <robin@gareus.org>2016-10-04 21:31:29 +0200
commita51daedbe6cf59bb202496efc9bcba6867e6bb5e (patch)
treea8d891678c93f70bb0ae72abe4b57a22b1e686ad /libs/ardour/ardour/lua_api.h
parent0d2ccdd39c676cc978af87231e48ae46da17dce9 (diff)
Vamp::Plugins::process Lua bindings
Diffstat (limited to 'libs/ardour/ardour/lua_api.h')
-rw-r--r--libs/ardour/ardour/lua_api.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lua_api.h b/libs/ardour/ardour/lua_api.h
index 5974a96b6d..a049be2768 100644
--- a/libs/ardour/ardour/lua_api.h
+++ b/libs/ardour/ardour/lua_api.h
@@ -214,6 +214,18 @@ namespace ARDOUR { namespace LuaAPI {
bool initialized () const { return _initialized; }
+ /** process given array of audio-samples.
+ *
+ * This is a lua-binding for vamp:plugin():process ()
+ *
+ * @d audio-data, the vector must match the configured channel count
+ * and hold a complete buffer for every channel as set during
+ * plugin():initialise()
+ * @rt timestamp matching the provided buffer.
+ * @returns features extracted from that data (if the plugin is causal)
+ */
+ ::Vamp::Plugin::FeatureSet process (const std::vector<float*>& d, ::Vamp::RealTime rt);
+
private:
::Vamp::Plugin* _plugin;
float _sample_rate;