Browse Source

Misc fixes

tags/1.9.4
falkTX 11 years ago
parent
commit
f01f8c1c84
7 changed files with 41 additions and 6 deletions
  1. +1
    -1
      source/backend/engine/CarlaEngineJack.cpp
  2. +7
    -1
      source/backend/engine/Makefile
  3. +7
    -1
      source/backend/native/Makefile
  4. +2
    -0
      source/backend/plugin/NativePlugin.cpp
  5. +13
    -1
      source/backend/standalone/CarlaStandalone.cpp
  6. +10
    -1
      source/backend/standalone/Makefile
  7. +1
    -1
      source/discovery/carla-discovery.cpp

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

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


#if 1//def WANT_JACK
#ifdef WANT_JACK


#include "CarlaEngineInternal.hpp" #include "CarlaEngineInternal.hpp"
#include "CarlaBackendUtils.hpp" #include "CarlaBackendUtils.hpp"


+ 7
- 1
source/backend/engine/Makefile View File

@@ -15,7 +15,7 @@ LINK_FLAGS += $(shell pkg-config --libs liblo QtCore QtXml)


ifeq ($(CARLA_RTAUDIO_SUPPORT),true) ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
BUILD_CXX_FLAGS += -DHAVE_GETTIMEOFDAY BUILD_CXX_FLAGS += -DHAVE_GETTIMEOFDAY
BUILD_CXX_FLAGS += -Irtaudio-4.0.11 -Irtmidi-2.0.1
BUILD_CXX_FLAGS += -Irtaudio-4.0.11 -Irtaudio-4.0.11/include -Irtmidi-2.0.1
ifeq ($(DEBUG),true) ifeq ($(DEBUG),true)
BUILD_CXX_FLAGS += -D__RTAUDIO_DEBUG__ -D__RTMIDI_DEBUG__ BUILD_CXX_FLAGS += -D__RTAUDIO_DEBUG__ -D__RTMIDI_DEBUG__
endif endif
@@ -52,6 +52,12 @@ ifeq ($(CARLA_RTAUDIO_SUPPORT),true)
OBJS += \ OBJS += \
rtaudio-4.0.11/RtAudio.cpp.o \ rtaudio-4.0.11/RtAudio.cpp.o \
rtmidi-2.0.1/RtMidi.cpp.o rtmidi-2.0.1/RtMidi.cpp.o

# OBJS += \
# rtaudio-4.0.11/include/asio.cpp.o \
# rtaudio-4.0.11/include/asiodrivers.cpp.o \
# rtaudio-4.0.11/include/asiolist.cpp.o \
# rtaudio-4.0.11/include/iasiothiscallresolver.cpp.o
endif endif


SHARED = ../libcarla_engine.so SHARED = ../libcarla_engine.so


+ 7
- 1
source/backend/native/Makefile View File

@@ -45,9 +45,15 @@ OBJS = \
midi-sequencer.cpp.o \ midi-sequencer.cpp.o \
midi-split.c.o \ midi-split.c.o \
midi-through.c.o \ midi-through.c.o \
midi-transpose.c.o \
midi-transpose.c.o

# FIXME
OBJSN = \
nekofilter.c.o nekofilter.c.o


OBJS += \
$(OBJS_N)

# AudioFile # AudioFile
ifeq ($(HAVE_AF_DEPS),true) ifeq ($(HAVE_AF_DEPS),true)
OBJS += \ OBJS += \


+ 2
- 0
source/backend/plugin/NativePlugin.cpp View File

@@ -31,7 +31,9 @@ void carla_register_all_plugins()
carla_register_native_plugin_midiSplit(); carla_register_native_plugin_midiSplit();
carla_register_native_plugin_midiThrough(); carla_register_native_plugin_midiThrough();
carla_register_native_plugin_midiTranspose(); carla_register_native_plugin_midiTranspose();
#ifndef CARLA_OS_WIN
carla_register_native_plugin_nekofilter(); carla_register_native_plugin_nekofilter();
#endif


#ifdef WANT_AUDIOFILE #ifdef WANT_AUDIOFILE
// AudioFile // AudioFile


+ 13
- 1
source/backend/standalone/CarlaStandalone.cpp View File

@@ -23,6 +23,8 @@
#include "CarlaMIDI.h" #include "CarlaMIDI.h"
#include "CarlaNative.h" #include "CarlaNative.h"


#include <QtGui/QApplication>

#if 0 #if 0
extern "C" { extern "C" {
#include "siginfo.c" #include "siginfo.c"
@@ -49,7 +51,17 @@ struct CarlaBackendStandalone {
CarlaBackendStandalone() CarlaBackendStandalone()
: callback(nullptr), : callback(nullptr),
callbackPtr(nullptr), callbackPtr(nullptr),
engine(nullptr) {}
engine(nullptr)
{
QApplication* app = qApp;

if (app == nullptr)
{
static int argc = 0;
static char** argv = nullptr;
app = new QApplication(argc, argv, true);
}
}


} standalone; } standalone;




+ 10
- 1
source/backend/standalone/Makefile View File

@@ -6,6 +6,10 @@


include ../Makefile.mk include ../Makefile.mk


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

BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtGui)

# -------------------------------------------------------------- # --------------------------------------------------------------
# Common # Common


@@ -40,12 +44,14 @@ endif
# -------------------------------------------------------------- # --------------------------------------------------------------
# Native # Native


DGL_LIBS = -lX11

ifeq ($(HAVE_AF_DEPS),true) ifeq ($(HAVE_AF_DEPS),true)
LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil sndfile) LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil sndfile)
endif endif


ifeq ($(HAVE_OPENGL),true) ifeq ($(HAVE_OPENGL),true)
LINK_FLAGS += $(shell pkg-config --libs gl) -lX11
LINK_FLAGS += $(shell pkg-config --libs gl) $(DGL_LIBS)
endif endif


ifeq ($(HAVE_ZYN_DEPS),true) ifeq ($(HAVE_ZYN_DEPS),true)
@@ -98,6 +104,9 @@ $(SHARED): $(OBJS) $(LIBS)
$(STATIC): $(OBJS) $(LIBS) $(STATIC): $(OBJS) $(LIBS)
$(AR) rs $@ $^ $(AR) rs $@ $^


../libcarla_standalone.dll: $(OBJS) $(LIBS)
$(CXX) $^ -shared $(LINK_FLAGS) -lcomdlg32 -limm32 -lole32 -lshell32 -luuid -lwinspool -lws2_32 -Wl,--output-def,$@.def -o $@ && $(STRIP) $@

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


../libcarla_%.a: ../libcarla_%.a:


+ 1
- 1
source/discovery/carla-discovery.cpp View File

@@ -1341,7 +1341,7 @@ void do_fluidsynth_check(const char* const filename, const bool init)
delete_fluid_settings(f_settings); delete_fluid_settings(f_settings);
} }


#if CARLA_OS_WIN
#ifdef CARLA_OS_WIN
int sep = '\\'; int sep = '\\';
#else #else
int sep = '/'; int sep = '/';


Loading…
Cancel
Save