Browse Source

Fix build with hylia disabled

Closes #473
tags/1.9.7b
falkTX 7 years ago
parent
commit
8fef1ca8b6
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      source/backend/engine/CarlaEngineInternal.cpp

+ 4
- 4
source/backend/engine/CarlaEngineInternal.cpp View File

@@ -77,7 +77,7 @@ EngineInternalTime::EngineInternalTime() noexcept

EngineInternalTime::~EngineInternalTime() noexcept
{
#ifndef BUILD_BRIDGE
#if defined(HAVE_HYLIA) && !defined(BUILD_BRIDGE)
hylia_cleanup(hylia);
#endif
}
@@ -100,7 +100,7 @@ void EngineInternalTime::fillEngineTimeInfo(EngineTimeInfo& info, const uint32_t

double abs_beat, abs_tick;

#ifndef BUILD_BRIDGE
#if defined(HAVE_HYLIA) && !defined(BUILD_BRIDGE)
if (hylia_enabled > 0 && hylia_time.bpm > 0.0)
{
const double beats = hylia_time.beats;
@@ -346,7 +346,7 @@ void CarlaEngine::ProtectedData::initTime()
time.tick = 0.0;
time.fillEngineTimeInfo(timeInfo, 0);

#ifndef BUILD_BRIDGE
#if defined(HAVE_HYLIA) && !defined(BUILD_BRIDGE)
CARLA_SAFE_ASSERT_RETURN(time.hylia == nullptr,);
time.hylia = hylia_create(120.0, bufferSize, sampleRate);

@@ -450,7 +450,7 @@ PendingRtEventsRunner::PendingRtEventsRunner(CarlaEngine* const engine, const ui
: pData(engine->pData),
bufferSize(bufSize)
{
#ifndef BUILD_BRIDGE
#if defined(HAVE_HYLIA) && !defined(BUILD_BRIDGE)
if (pData->time.hylia_enabled > 0)
{
hylia_process(pData->time.hylia, bufferSize, &pData->time.hylia_time);


Loading…
Cancel
Save