X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fluaproc.h;h=a07725417983d693da8a288d9f88d90e2ede6a42;hb=HEAD;hp=8ac27095abf8bbad7c8e1edba3d2e57635b07377;hpb=b8491014a53e236255f5803fc876f848cfc82750;p=ardour.git diff --git a/libs/ardour/ardour/luaproc.h b/libs/ardour/ardour/luaproc.h index 8ac27095ab..a077254179 100644 --- a/libs/ardour/ardour/luaproc.h +++ b/libs/ardour/ardour/luaproc.h @@ -85,11 +85,11 @@ public: void cleanup () { } int set_block_size (pframes_t /*nframes*/) { return 0; } - samplecnt_t signal_latency() const { return 0; } + samplecnt_t signal_latency() const { return _signal_latency; } int connect_and_run (BufferSet& bufs, samplepos_t start, samplepos_t end, double speed, - ChanMapping in, ChanMapping out, + ChanMapping const& in, ChanMapping const& out, pframes_t nframes, samplecnt_t offset); std::string describe_parameter (Evoral::Parameter); @@ -148,6 +148,7 @@ private: #endif LuaState lua; luabridge::LuaRef * _lua_dsp; + luabridge::LuaRef * _lua_latency; std::string _script; std::string _origin; std::string _docs; @@ -176,6 +177,8 @@ private: std::map _param_doc; uint32_t _designated_bypass_port; + samplecnt_t _signal_latency; + float* _control_data; float* _shadow_data; @@ -192,6 +195,7 @@ private: bool _has_midi_input; bool _has_midi_output; + #ifdef WITH_LUAPROC_STATS int64_t _stats_avg[2]; int64_t _stats_max[2];