From c0a12744512c3c5db7ec76ac08775b221da5d7cf Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 Mar 2021 21:59:38 +0000 Subject: [PATCH] Small tweaks in preparation of future things Signed-off-by: falkTX --- source/plugin/carla-lv2.cpp | 6 ++++++ source/utils/CarlaLv2Utils.hpp | 3 +++ 2 files changed, 9 insertions(+) diff --git a/source/plugin/carla-lv2.cpp b/source/plugin/carla-lv2.cpp index 25da27c23..17a95e655 100644 --- a/source/plugin/carla-lv2.cpp +++ b/source/plugin/carla-lv2.cpp @@ -398,6 +398,12 @@ public: switch (ptype) { + case 'b': + lv2_atom_forge_vector(&atomForge, sizeof(int32_t), fURIs.atomBool, psize, pbuffer); + break; + case 'i': + lv2_atom_forge_vector(&atomForge, sizeof(int32_t), fURIs.atomInt, psize, pbuffer); + break; case 'f': lv2_atom_forge_vector(&atomForge, sizeof(float), fURIs.atomFloat, psize, pbuffer); break; diff --git a/source/utils/CarlaLv2Utils.hpp b/source/utils/CarlaLv2Utils.hpp index 0a12d52ab..edac19ac2 100644 --- a/source/utils/CarlaLv2Utils.hpp +++ b/source/utils/CarlaLv2Utils.hpp @@ -1510,6 +1510,7 @@ protected: // Rest of host<->plugin support struct URIDs { LV2_URID atomBlank; + LV2_URID atomBool; LV2_URID atomObject; LV2_URID atomDouble; LV2_URID atomFloat; @@ -1542,6 +1543,7 @@ protected: URIDs() : atomBlank(0), + atomBool(0), atomObject(0), atomDouble(0), atomFloat(0), @@ -1575,6 +1577,7 @@ protected: void map(const LV2_URID_Map* const uridMap) { atomBlank = uridMap->map(uridMap->handle, LV2_ATOM__Blank); + atomBool = uridMap->map(uridMap->handle, LV2_ATOM__Bool); atomObject = uridMap->map(uridMap->handle, LV2_ATOM__Object); atomDouble = uridMap->map(uridMap->handle, LV2_ATOM__Double); atomFloat = uridMap->map(uridMap->handle, LV2_ATOM__Float);