Skip to content

Commit

Permalink
Prevent an assertion on dummy backend test
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 7, 2022
1 parent 3bc96e3 commit 613e695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/backend/engine/CarlaEngineDummy.cpp
Expand Up @@ -257,7 +257,7 @@ class CarlaEngineDummy : public CarlaEngine,
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));
Expand Down
2 changes: 1 addition & 1 deletion source/utils/CarlaMathUtils.hpp
Expand Up @@ -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;
Expand Down

0 comments on commit 613e695

Please sign in to comment.