diff options
Diffstat (limited to 'src/engine/LV2Node.hpp')
-rw-r--r-- | src/engine/LV2Node.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/engine/LV2Node.hpp b/src/engine/LV2Node.hpp index 57ad7998..4d751f32 100644 --- a/src/engine/LV2Node.hpp +++ b/src/engine/LV2Node.hpp @@ -61,9 +61,13 @@ public: void set_port_buffer(uint32_t voice, uint32_t port_num, IntrusivePtr<Buffer> buf); protected: - LV2Plugin* _lv2_plugin; - Raul::Array<SLV2Instance>* _instances; - Raul::Array<SLV2Instance>* _prepared_instances; + inline SLV2Instance instance(uint32_t voice) { return (SLV2Instance)(*_instances)[voice].get(); } + + typedef Raul::Array< SharedPtr<void> > Instances; + + LV2Plugin* _lv2_plugin; + Instances* _instances; + Instances* _prepared_instances; LV2MessageContext* _message_funcs; |