Browse Source

Small tweaks in preparation of future things

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.3.0-RC2
falkTX 3 years ago
parent
commit
c0a1274451
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 9 additions and 0 deletions
  1. +6
    -0
      source/plugin/carla-lv2.cpp
  2. +3
    -0
      source/utils/CarlaLv2Utils.hpp

+ 6
- 0
source/plugin/carla-lv2.cpp View File

@@ -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;


+ 3
- 0
source/utils/CarlaLv2Utils.hpp View File

@@ -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);


Loading…
Cancel
Save