Browse Source

Prevent an assertion on dummy backend test

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.2
falkTX 2 years ago
parent
commit
613e695058
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineDummy.cpp
  2. +1
    -1
      source/utils/CarlaMathUtils.hpp

+ 1
- 1
source/backend/engine/CarlaEngineDummy.cpp View File

@@ -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<uint>(remainingTime / 1000));


+ 1
- 1
source/utils/CarlaMathUtils.hpp View File

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


Loading…
Cancel
Save