Browse Source

OSX build fix

tags/1.9.4
falkTX 12 years ago
parent
commit
5882bfbe95
8 changed files with 23 additions and 19 deletions
  1. +3
    -7
      source/Makefile.mk
  2. +2
    -2
      source/carla_style.py
  3. +2
    -0
      source/modules/native-plugins/zynaddsubfx-src.cpp
  4. +1
    -5
      source/modules/native-plugins/zynaddsubfx-synth.cpp
  5. +5
    -5
      source/modules/native-plugins/zynaddsubfx/Misc/Part.cpp
  6. +2
    -0
      source/modules/native-plugins/zynaddsubfx/Misc/Util.cpp
  7. +2
    -0
      source/modules/rtmempool/list.h
  8. +6
    -0
      source/patchcanvas_theme.py

+ 3
- 7
source/Makefile.mk View File

@@ -111,13 +111,9 @@ BUILD_CXX_FLAGS = $(BASE_FLAGS) -std=c++0x -std=gnu++0x $(CXXFLAGS)
LINK_FLAGS = $(LINK_OPTS) -Wl,--no-undefined $(LDFLAGS)

ifeq ($(MACOS),true)
# No C++11 support; force 32bit per default
BUILD_C_FLAGS += $(32BIT_FLAGS)
BUILD_CXX_FLAGS = $(BASE_FLAGS) $(32BIT_FLAGS) $(CXXFLAGS)
LINK_FLAGS = $(32BIT_FLAGS) $(LDFLAGS)
# Set target
BUILD_CXX_FLAGS += -DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_5
BUILD_CXX_FLAGS += -DMAC_OS_X_VERSION_MAX_ALLOWED=MAC_OS_X_VERSION_10_5
# No C++11 support
BUILD_CXX_FLAGS = $(BASE_FLAGS) $(CXXFLAGS)
LINK_FLAGS = $(LINK_OPTS) $(LDFLAGS)
endif

# --------------------------------------------------------------


+ 2
- 2
source/carla_style.py View File

@@ -198,8 +198,8 @@ class CarlaApplication(object):

useProTheme = settings.value("Main/UseProTheme", True, type=bool)

if useProTheme or True:
#font = QFont("DejaVu Sans [Book]", 8, QFont.Normal)
if useProTheme:
#font = QFont("DejaVu Sans [Book]", 12 if MACOS else 8, QFont.Normal)
#self.fApp.setFont(font)
#QApplication.setFont(font)



+ 2
- 0
source/modules/native-plugins/zynaddsubfx-src.cpp View File

@@ -15,6 +15,8 @@
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/

#include "CarlaDefines.h"

// zynaddsubfx includes
#include "zynaddsubfx/DSP/AnalogFilter.cpp"
#include "zynaddsubfx/DSP/FFTwrapper.cpp"


+ 1
- 5
source/modules/native-plugins/zynaddsubfx-synth.cpp View File

@@ -15,10 +15,6 @@
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/

// for UINT32_MAX
#define __STDC_LIMIT_MACROS
#include <cstdint>

#include "CarlaNative.hpp"
#include "CarlaMIDI.h"
#include "CarlaThread.hpp"
@@ -87,7 +83,7 @@ public:
if (! fInitiated)
return;

for (auto it = fPrograms.begin(); it.valid(); it.next())
for (LinkedList<const ProgramInfo*>::Itenerator it = fPrograms.begin(); it.valid(); it.next())
{
const ProgramInfo* const& pInfo(it.getValue());
delete pInfo;


+ 5
- 5
source/modules/native-plugins/zynaddsubfx/Misc/Part.cpp View File

@@ -153,21 +153,21 @@ void Part::defaultsinstrument()
/*
* Cleanup the part
*/
void Part::cleanup(bool final)
void Part::cleanup(bool final_)
{
for(int k = 0; k < POLIPHONY; ++k)
KillNotePos(k);
for(int i = 0; i < synth->buffersize; ++i) {
partoutl[i] = final ? 0.0f : denormalkillbuf[i];
partoutr[i] = final ? 0.0f : denormalkillbuf[i];
partoutl[i] = final_ ? 0.0f : denormalkillbuf[i];
partoutr[i] = final_ ? 0.0f : denormalkillbuf[i];
}
ctl.resetall();
for(int nefx = 0; nefx < NUM_PART_EFX; ++nefx)
partefx[nefx]->cleanup();
for(int n = 0; n < NUM_PART_EFX + 1; ++n)
for(int i = 0; i < synth->buffersize; ++i) {
partfxinputl[n][i] = final ? 0.0f : denormalkillbuf[i];
partfxinputr[n][i] = final ? 0.0f : denormalkillbuf[i];
partfxinputl[n][i] = final_ ? 0.0f : denormalkillbuf[i];
partfxinputr[n][i] = final_ ? 0.0f : denormalkillbuf[i];
}
}



+ 2
- 0
source/modules/native-plugins/zynaddsubfx/Misc/Util.cpp View File

@@ -119,12 +119,14 @@ bool fileexists(const char *filename)

void set_realtime()
{
#ifdef CARLA_OS_LINUX
sched_param sc;
sc.sched_priority = 60;
//if you want get "sched_setscheduler undeclared" from compilation,
//you can safely remove the folowing line:
sched_setscheduler(0, SCHED_FIFO, &sc);
//if (err==0) printf("Real-time");
#endif
}

void os_sleep(long length)


+ 2
- 0
source/modules/rtmempool/list.h View File

@@ -38,6 +38,8 @@
# include <stddef.h>
#endif

#define __THROW

#ifndef offsetof
# define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#endif


+ 6
- 0
source/patchcanvas_theme.py View File

@@ -24,6 +24,8 @@ from carla_config import *
# ------------------------------------------------------------------------------------------------------------
# Imports (Global)

#from sys import platform

if config_UseQt5:
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QColor, QFont, QPen, QPixmap
@@ -470,6 +472,10 @@ class Theme(object):
self.rubberband_pen = QPen(QColor(1, 230, 238), 2, Qt.SolidLine)
self.rubberband_brush = QColor(90, 90, 90, 100)

# if platform == "darwin":
# self.box_font_size += 3
# self.port_font_size += 3

def getDefaultTheme():
return Theme.THEME_MODERN_DARK



Loading…
Cancel
Save