Browse Source

Cleanup

tags/1.9.4
falkTX 11 years ago
parent
commit
71a71b8342
4 changed files with 10 additions and 7 deletions
  1. +0
    -1
      source/backend/engine/CarlaEngineOsc.cpp
  2. +4
    -4
      source/backend/engine/CarlaEngineThread.cpp
  3. +4
    -0
      source/backend/engine/CarlaEngineThread.hpp
  4. +2
    -2
      source/bridges/qtcreator/carla-bridge-plugin.pro

+ 0
- 1
source/backend/engine/CarlaEngineOsc.cpp View File

@@ -19,7 +19,6 @@


#include "CarlaEngine.hpp" #include "CarlaEngine.hpp"
#include "CarlaPlugin.hpp" #include "CarlaPlugin.hpp"
#include "CarlaMIDI.h"


#ifndef BUILD_BRIDGE #ifndef BUILD_BRIDGE
# include "CarlaBridgeUtils.hpp" # include "CarlaBridgeUtils.hpp"


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

@@ -43,11 +43,11 @@ CarlaEngineThread::~CarlaEngineThread()


void CarlaEngineThread::run() void CarlaEngineThread::run()
{ {
CARLA_SAFE_ASSERT_RETURN(fEngine != nullptr,);
CARLA_ASSERT(fEngine->isRunning()); CARLA_ASSERT(fEngine->isRunning());
carla_debug("CarlaEngineThread::run()"); carla_debug("CarlaEngineThread::run()");


bool oscRegisted, needsSingleThread; bool oscRegisted, needsSingleThread;
unsigned int i, count;
float value; float value;


while (fEngine->isRunning() && ! threadShouldExit()) while (fEngine->isRunning() && ! threadShouldExit())
@@ -58,7 +58,7 @@ void CarlaEngineThread::run()
oscRegisted = fEngine->isOscControlRegistered(); oscRegisted = fEngine->isOscControlRegistered();
#endif #endif


for (i=0, count = fEngine->getCurrentPluginCount(); i < count; ++i)
for (unsigned int i=0, count = fEngine->getCurrentPluginCount(); i < count; ++i)
{ {
CarlaPlugin* const plugin(fEngine->getPluginUnchecked(i)); CarlaPlugin* const plugin(fEngine->getPluginUnchecked(i));


@@ -80,7 +80,7 @@ void CarlaEngineThread::run()
// ------------------------------------------------------- // -------------------------------------------------------
// Update parameter outputs // Update parameter outputs


for (uint32_t j=0; j < plugin->getParameterCount(); ++j)
for (uint32_t j=0, pcount=plugin->getParameterCount(); j < pcount; ++j)
{ {
if (! plugin->isParameterOutput(j)) if (! plugin->isParameterOutput(j))
continue; continue;
@@ -113,7 +113,7 @@ void CarlaEngineThread::run()
} }


fEngine->idleOsc(); fEngine->idleOsc();
sleep(oscRegisted ? 30 : 50);
Thread::sleep(oscRegisted ? 30 : 50);
} }
} }




+ 4
- 0
source/backend/engine/CarlaEngineThread.hpp View File

@@ -29,6 +29,8 @@ CARLA_BACKEND_START_NAMESPACE
} // Fix editor indentation } // Fix editor indentation
#endif #endif


// -----------------------------------------------------------------------

class CarlaEngineThread : public Thread class CarlaEngineThread : public Thread
{ {
public: public:
@@ -44,6 +46,8 @@ private:
CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaEngineThread) CARLA_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(CarlaEngineThread)
}; };


// -----------------------------------------------------------------------

CARLA_BACKEND_END_NAMESPACE CARLA_BACKEND_END_NAMESPACE


#endif // CARLA_ENGINE_THREAD_HPP_INCLUDED #endif // CARLA_ENGINE_THREAD_HPP_INCLUDED

+ 2
- 2
source/bridges/qtcreator/carla-bridge-plugin.pro View File

@@ -41,8 +41,8 @@ PKGCONFIG += fluidsynth
PKGCONFIG += linuxsampler PKGCONFIG += linuxsampler


# AudioFile # AudioFile
DEFINES += HAVE_FFMPEG
PKGCONFIG += libavcodec libavformat libavutil sndfile
# DEFINES += HAVE_FFMPEG
# PKGCONFIG += libavcodec libavformat libavutil sndfile


# MidiFile # MidiFile
PKGCONFIG += smf PKGCONFIG += smf


Loading…
Cancel
Save