From ac8eaf4736021180573f3fdbb2df865ef2d67d7a Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 30 Sep 2023 10:41:56 +0200 Subject: [PATCH] Import minor fixes from main branch Signed-off-by: falkTX --- source/utils/CarlaRingBuffer.hpp | 2 +- source/utils/CarlaStateUtils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utils/CarlaRingBuffer.hpp b/source/utils/CarlaRingBuffer.hpp index 9cd723088..efc165988 100644 --- a/source/utils/CarlaRingBuffer.hpp +++ b/source/utils/CarlaRingBuffer.hpp @@ -155,7 +155,7 @@ public: const uint32_t wrap((fBuffer->tail > fBuffer->wrtn) ? 0 : fBuffer->size); - return wrap + fBuffer->tail - fBuffer->wrtn; + return wrap + fBuffer->tail - fBuffer->wrtn - 1; } // ------------------------------------------------------------------- diff --git a/source/utils/CarlaStateUtils.cpp b/source/utils/CarlaStateUtils.cpp index 517989ce9..ec7e64b9b 100644 --- a/source/utils/CarlaStateUtils.cpp +++ b/source/utils/CarlaStateUtils.cpp @@ -249,7 +249,7 @@ void CarlaStateSave::clear() noexcept } uniqueId = 0; - options = 0x0; + options = PLUGIN_OPTIONS_NULL; #ifndef BUILD_BRIDGE_ALTERNATIVE_ARCH active = false;