diff --git a/source/backend/plugin/CarlaPluginLV2.cpp b/source/backend/plugin/CarlaPluginLV2.cpp index 564ec9ec7..d05b4f5d0 100644 --- a/source/backend/plugin/CarlaPluginLV2.cpp +++ b/source/backend/plugin/CarlaPluginLV2.cpp @@ -5091,11 +5091,12 @@ public: const LV2_Atom* const atom((const LV2_Atom*)buffer); // plugins sometimes fail on this, not good... - const uint32_t totalSize = lv2_atom_total_size(atom); + const uint32_t totalSize = lv2_atom_total_size(atom); const uint32_t paddedSize = lv2_atom_pad_size(totalSize); if (bufferSize != totalSize && bufferSize != paddedSize) - carla_stderr2("Warning: LV2 UI sending atom with invalid size! size: %u, padded-size: %u", totalSize, paddedSize); + carla_stderr2("Warning: LV2 UI sending atom with invalid size %u! size: %u, padded-size: %u", + bufferSize, totalSize, paddedSize); for (uint32_t i=0; i < fEventsIn.count; ++i) { diff --git a/source/bridges-ui/CarlaBridgeFormatLV2.cpp b/source/bridges-ui/CarlaBridgeFormatLV2.cpp index 9a993c5bc..e536bc875 100644 --- a/source/bridges-ui/CarlaBridgeFormatLV2.cpp +++ b/source/bridges-ui/CarlaBridgeFormatLV2.cpp @@ -41,7 +41,6 @@ static double gInitialSampleRate = 44100.0; static const char* const kNullWindowTitle = "TestUI"; static const uint32_t kNullWindowTitleSize = 6; - // LV2 URI Map Ids enum CarlaLv2URIDs { kUridNull = 0, @@ -76,6 +75,9 @@ enum CarlaLv2URIDs { kUridLogNote, kUridLogTrace, kUridLogWarning, + kUridPatchSet, + kUridPatchPoperty, + kUridPatchValue, // time base type kUridTimePosition, // time values @@ -737,11 +739,12 @@ public: const LV2_Atom* const atom((const LV2_Atom*)buffer); // plugins sometimes fail on this, not good... - const uint32_t totalSize = lv2_atom_total_size(atom); + const uint32_t totalSize = lv2_atom_total_size(atom); const uint32_t paddedSize = lv2_atom_pad_size(totalSize); if (bufferSize != totalSize && bufferSize != paddedSize) - carla_stderr2("Warning: LV2 UI sending atom with invalid size! size: %u, padded-size: %u", totalSize, paddedSize); + carla_stderr2("Warning: LV2 UI sending atom with invalid size %u! size: %u, padded-size: %u", + bufferSize, totalSize, paddedSize); writeLv2AtomMessage(rindex, atom); } @@ -992,6 +995,14 @@ private: if (std::strcmp(uri, LV2_LOG__Warning) == 0) return kUridLogWarning; + // Patch types + if (std::strcmp(uri, LV2_PATCH__Set) == 0) + return kUridPatchSet; + if (std::strcmp(uri, LV2_PATCH__property) == 0) + return kUridPatchPoperty; + if (std::strcmp(uri, LV2_PATCH__value) == 0) + return kUridPatchValue; + // Time types if (std::strcmp(uri, LV2_TIME__Position) == 0) return kUridTimePosition; @@ -1112,6 +1123,14 @@ private: case kUridLogWarning: return LV2_LOG__Warning; + // Patch types + case kUridPatchSet: + return LV2_PATCH__Set; + case kUridPatchPoperty: + return LV2_PATCH__property; + case kUridPatchValue: + return LV2_PATCH__value; + // Time types case kUridTimePosition: return LV2_TIME__Position;