X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fbuffer_set.h;h=12e9dbc63b0a99ddfcfad0c0961e3bf59fc08b33;hb=4d49961c93fe23dc4f76a5bcb60c93d0c80bcd3c;hp=5049eda70a36f149f76d8394ad396b816cb1e38e;hpb=f122504784e8e38be7d7df87af3f2a7044a7f14c;p=ardour.git diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h index 5049eda70a..12e9dbc63b 100644 --- a/libs/ardour/ardour/buffer_set.h +++ b/libs/ardour/ardour/buffer_set.h @@ -112,16 +112,22 @@ public: } #ifdef LV2_SUPPORT - /** Get a MIDI buffer translated into an LV2 MIDI buffer for use with plugins. - * The index here corresponds directly to MIDI buffer numbers (i.e. the index - * passed to get_midi), translation back and forth will happen as needed. - * If atom_type is 0 the returned buffer will be in the old event API - * format. Otherwise, atom_type must be the URID for atom:Sequence. + /** Get a MIDI buffer translated into an LV2 MIDI buffer for use with + * plugins. The index here corresponds directly to MIDI buffer numbers + * (i.e. the index passed to get_midi), translation back and forth will + * happen as needed. If old_api is true, the returned buffer will be in + * old event format. Otherwise it will be in new atom sequence format. */ - LV2_Evbuf* get_lv2_midi(bool input, size_t i, uint32_t atom_type); + LV2_Evbuf* get_lv2_midi(bool input, size_t i, bool old_api); + + /** ensure minimum size of LV2 Atom port buffer */ + void ensure_lv2_bufsize(bool input, size_t i, size_t buffer_capacity); /** Flush modified LV2 event output buffers back to Ardour buffers */ void flush_lv2_midi(bool input, size_t i); + + /** Forward plugin MIDI output to to Ardour buffers */ + void forward_lv2_midi(LV2_Evbuf*, size_t, bool purge_ardour_buffer = true); #endif #if defined VST_SUPPORT || defined LXVST_SUPPORT