diff --git a/source/backend/engine/CarlaEngineDummy.cpp b/source/backend/engine/CarlaEngineDummy.cpp index 4477776ef..1e31820d3 100644 --- a/source/backend/engine/CarlaEngineDummy.cpp +++ b/source/backend/engine/CarlaEngineDummy.cpp @@ -257,7 +257,7 @@ protected: carla_stdout("XRUN! remaining time: " P_INT64 ", old: " P_INT64 ", new: " P_INT64 ")", remainingTime, oldTime, newTime); } - else + else if (remainingTime >= 1000) { CARLA_SAFE_ASSERT_CONTINUE(remainingTime < 1000000); // 1 sec carla_msleep(static_cast(remainingTime / 1000)); diff --git a/source/utils/CarlaMathUtils.hpp b/source/utils/CarlaMathUtils.hpp index 106309e11..f095dfb17 100644 --- a/source/utils/CarlaMathUtils.hpp +++ b/source/utils/CarlaMathUtils.hpp @@ -241,7 +241,7 @@ float carla_findMaxNormalizedFloat(const float floats[], const std::size_t count CARLA_SAFE_ASSERT_RETURN(floats != nullptr, 0.0f); CARLA_SAFE_ASSERT_RETURN(count > 0, 0.0f); - static const float kEmptyFloats[8192] = { 0.0f }; + static const float kEmptyFloats[8192] = {}; if (count <= 8192 && std::memcmp(floats, kEmptyFloats, count) == 0) return 0.0f;