Browse Source

Misc changes

tags/1.9.4
falkTX 12 years ago
parent
commit
4af1a78318
6 changed files with 6 additions and 18 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineRtAudio.cpp
  2. +1
    -1
      source/backend/native/midi-sequencer.cpp
  3. +1
    -1
      source/backend/plugin/CarlaPluginInternal.hpp
  4. +1
    -1
      source/tests/RtList.cpp
  5. +0
    -12
      source/utils/CarlaUtils.hpp
  6. +2
    -2
      source/utils/RtList.hpp

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

@@ -1299,7 +1299,7 @@ private:

void splice()
{
dataPending.spliceAppend(data, true);
dataPending.spliceAppend(data);
}
};



+ 1
- 1
source/backend/native/midi-sequencer.cpp View File

@@ -219,7 +219,7 @@ private:

void splice()
{
dataPendingRT.spliceAppend(data, true);
dataPendingRT.spliceAppend(data);
}

} fInEvents;


+ 1
- 1
source/backend/plugin/CarlaPluginInternal.hpp View File

@@ -474,7 +474,7 @@ struct CarlaPluginProtectedData {
{
if (mutex.tryLock())
{
dataPendingRT.spliceAppend(data, true);
dataPendingRT.spliceAppend(data);
mutex.unlock();
}
}


+ 1
- 1
source/tests/RtList.cpp View File

@@ -73,7 +73,7 @@ struct PostRtEvents {
{
if (mutex.tryLock())
{
dataPendingRT.spliceAppend(data, true);
dataPendingRT.spliceAppend(data);
mutex.unlock();
}
}


+ 0
- 12
source/utils/CarlaUtils.hpp View File

@@ -160,18 +160,6 @@ void carla_msleep(const unsigned int msecs)
#endif
}

static inline
void carla_usleep(const unsigned int usecs)
{
CARLA_ASSERT(usecs > 0);

#ifdef CARLA_OS_WIN
Sleep(usecs / 1000);
#else
usleep(usecs);
#endif
}

// -------------------------------------------------
// carla_setenv



+ 2
- 2
source/utils/RtList.hpp View File

@@ -287,7 +287,7 @@ public:
}
}

void spliceAppend(List& list, const bool init = false)
void spliceAppend(List& list, const bool init = true)
{
if (init)
{
@@ -302,7 +302,7 @@ public:
}
}

void spliceInsert(List& list, const bool init = false)
void spliceInsert(List& list, const bool init = true)
{
if (init)
{


Loading…
Cancel
Save