Browse Source

More misc work and moving files again

tags/1.9.4
falkTX 12 years ago
parent
commit
8959c85f26
27 changed files with 87 additions and 83 deletions
  1. +1
    -1
      source/Makefile.mk
  2. +3
    -3
      source/backend/Makefile
  3. +0
    -5
      source/discovery/Makefile
  4. +0
    -0
      source/modules/CarlaNative.h
  5. +0
    -0
      source/modules/CarlaNative.hpp
  6. +0
    -41
      source/modules/JuceHeader.h
  7. +10
    -10
      source/modules/carla_native/Makefile
  8. +5
    -3
      source/modules/carla_native/audio-base.hpp
  9. +1
    -4
      source/modules/carla_native/distrho/DistrhoPluginCarla.cpp
  10. +1
    -1
      source/modules/carla_native/vex/cADSR.h
  11. +1
    -1
      source/modules/carla_native/vex/cArp.h
  12. +1
    -1
      source/modules/carla_native/vex/cChorus.h
  13. +1
    -1
      source/modules/carla_native/vex/cDelay.h
  14. +1
    -1
      source/modules/carla_native/vex/cReverb.h
  15. +1
    -1
      source/modules/carla_native/vex/cSyntModule.h
  16. +1
    -1
      source/modules/carla_native/vex/cVoice.h
  17. +1
    -1
      source/modules/carla_native/vex/cWaveRenderer.h
  18. +26
    -0
      source/modules/juce_audio_basics.h
  19. +1
    -1
      source/modules/juce_audio_basics/Makefile
  20. +24
    -0
      source/modules/juce_core.h
  21. +1
    -1
      source/modules/juce_core/Makefile
  22. +1
    -1
      source/modules/lilv/Makefile
  23. +1
    -1
      source/modules/rtmempool/Makefile
  24. +1
    -1
      source/modules/theme/Makefile
  25. +1
    -1
      source/modules/widgets/Makefile
  26. +1
    -1
      source/utils/CarlaJuceUtils.hpp
  27. +2
    -1
      source/utils/CarlaPipeUtils.hpp

+ 1
- 1
source/Makefile.mk View File

@@ -32,7 +32,7 @@ CXX ?= g++
# --------------------------------------------------------------

BASE_FLAGS = -Wall -Wextra -fPIC -DPIC -pipe
BASE_OPTS = -O3 -ffast-math -mtune=generic -msse -mfpmath=sse -fdata-sections -ffunction-sections
BASE_OPTS = -O3 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections
LINK_OPTS = -Wl,--gc-sections

ifeq ($(RASPPI),true)


+ 3
- 3
source/backend/Makefile View File

@@ -1,5 +1,5 @@
#!/usr/bin/make -f
# Makefile for carla backend #
# Makefile for carla-backend #
# -------------------------- #
# Created by falkTX
#
@@ -9,7 +9,7 @@ include ../Makefile.mk
# --------------------------------------------------------------

all:
# $(MAKE) -C control
$(MAKE) -C control
$(MAKE) -C engine
$(MAKE) -C plugin
$(MAKE) -C standalone
@@ -17,7 +17,7 @@ all:
# --------------------------------------------------------------

clean:
# $(MAKE) clean -C control
$(MAKE) clean -C control
$(MAKE) clean -C engine
$(MAKE) clean -C plugin
$(MAKE) clean -C standalone


+ 0
- 5
source/discovery/Makefile View File

@@ -32,11 +32,6 @@ POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
POSIX_LINK_FLAGS = $(LINK_FLAGS) -ldl

ifeq ($(MACOS),true)
POSIX_32BIT_FLAGS = $(32BIT_FLAGS)
POSIX_64BIT_FLAGS = $(64BIT_FLAGS)
endif

WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
WIN_32BIT_FLAGS = $(32BIT_FLAGS)
WIN_64BIT_FLAGS = $(64BIT_FLAGS)


source/modules/carla_native/CarlaNative.h → source/modules/CarlaNative.h View File


source/modules/carla_native/CarlaNative.hpp → source/modules/CarlaNative.hpp View File


+ 0
- 41
source/modules/JuceHeader.h View File

@@ -1,41 +0,0 @@
/*
* Carla Juce setup
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/
#ifndef CARLA_JUCE_HEADER_H_INCLUDED
#define CARLA_JUCE_HEADER_H_INCLUDED
// TODO - merge single file
#include "juce_core/AppConfig.h"
#include "juce_audio_basics/AppConfig.h"
// #include "juce_audio_formats/AppConfig.h"
// #include "juce_audio_devices/AppConfig.h"
// #include "juce_events/AppConfig.h"
#include "juce_audio_basics/juce_audio_basics.h"
// #include "juce_audio_devices/juce_audio_devices.h"
// #include "juce_audio_formats/juce_audio_formats.h"
// #include "juce_audio_processors/juce_audio_processors.h"
#include "juce_core/juce_core.h"
// #include "juce_data_structures/juce_data_structures.h"
// #include "juce_events/juce_events.h"
// #include "juce_graphics/juce_graphics.h"
// #include "juce_gui_basics/juce_gui_basics.h"
//#include "modules/juce_audio_utils/juce_audio_utils.h"
//#include "modules/juce_gui_extra/juce_gui_extra.h"
#endif // CARLA_JUCE_HEADER_H_INCLUDED

+ 10
- 10
source/modules/carla_native/Makefile View File

@@ -8,8 +8,8 @@ include ../../Makefile.mk

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

BUILD_C_FLAGS += -I. -I../../includes
BUILD_CXX_FLAGS += -I. -I.. -I../distrho -I../../includes -I../../utils
BUILD_C_FLAGS += -I. -I.. -I../../includes
BUILD_CXX_FLAGS += -I. -I.. -I../../includes -I../../utils -I../distrho

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

@@ -165,8 +165,8 @@ moc_%.cpp: %.hpp

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

CDEPS = CarlaNative.h
CXXDEPS = CarlaNative.h CarlaNative.hpp
CDEPS = ../CarlaNative.h
CXXDEPS = ../CarlaNative.h ../CarlaNative.hpp

audio_decoder/%.c.o: audio_decoder/%.c
$(CC) $< $(AF_C_FLAGS) -c -o $@
@@ -174,19 +174,19 @@ audio_decoder/%.c.o: audio_decoder/%.c
audio-file.cpp.o: audio-file.cpp audio-base.hpp $(CXXDEPS)
$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@

distrho-3bandeq.cpp.o: distrho-3bandeq.cpp #3bandeq/*.cpp 3bandeq/*.h 3bandeq/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
distrho-3bandeq.cpp.o: distrho-3bandeq.cpp 3bandeq/*.cpp 3bandeq/*.h 3bandeq/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
$(CXX) $< $(GL_CXX_FLAGS) -I3bandeq -DDISTRHO_NAMESPACE=DISTRHO_3BandEQ -c -o $@

distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp #3bandsplitter/*.cpp 3bandsplitter/*.h 3bandsplitter/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
distrho-3bandsplitter.cpp.o: distrho-3bandsplitter.cpp 3bandsplitter/*.cpp 3bandsplitter/*.h 3bandsplitter/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
$(CXX) $< $(GL_CXX_FLAGS) -I3bandsplitter -DDISTRHO_NAMESPACE=DISTRHO_3BandSplitter -c -o $@

distrho-nekobi.cpp.o: distrho-nekobi.cpp nekobi/*.cpp #nekobi/*.h nekobi/*.hpp nekobi/nekobee-src/*.c nekobi/nekobee-src/*.h distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
distrho-nekobi.cpp.o: distrho-nekobi.cpp nekobi/*.cpp nekobi/*.h nekobi/*.hpp nekobi/nekobee-src/*.c nekobi/nekobee-src/*.h distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
$(CXX) $< $(GL_CXX_FLAGS) -Inekobi -DDISTRHO_NAMESPACE=DISTRHO_Nekobi -c -o $@

distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp #pingpongpan/*.cpp pingpongpan/*.h pingpongpan/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
distrho-pingpongpan.cpp.o: distrho-pingpongpan.cpp pingpongpan/*.cpp pingpongpan/*.h pingpongpan/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
$(CXX) $< $(GL_CXX_FLAGS) -Ipingpongpan -DDISTRHO_NAMESPACE=DISTRHO_PingPongPan -c -o $@

distrho-stereoenhancer.cpp.o: distrho-stereoenhancer.cpp #stereoenhancer/*.cpp stereoenhancer/*.h stereoenhancer/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
distrho-stereoenhancer.cpp.o: distrho-stereoenhancer.cpp stereoenhancer/*.cpp stereoenhancer/*.h stereoenhancer/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
$(CXX) $< $(GL_CXX_FLAGS) -Istereoenhancer -DDISTRHO_NAMESPACE=DISTRHO_StereoEnhancer -c -o $@

distrho-notes.cpp.o: distrho-notes.cpp notes/*.cpp notes/*.h notes/*.hpp distrho/DistrhoPluginCarla.cpp $(CXXDEPS)
@@ -219,7 +219,7 @@ zynaddsubfx/UI/%.h: zynaddsubfx/UI/%.fl
# --------------------------------------------------------------

clean:
rm -f $(OBJS) ../carla_native.*
rm -f $(OBJS) ../carla_native*.a
rm -f $(ZYN_UI_FILES_H) $(ZYN_UI_FILES_CPP)

debug:


+ 5
- 3
source/modules/carla_native/audio-base.hpp View File

@@ -20,7 +20,9 @@

#include "CarlaMutex.hpp"

#include "JuceHeader.h"
#include "juce_core.h"

using juce::Thread;

extern "C" {
#include "audio_decoder/ad.h"
@@ -109,11 +111,11 @@ public:
virtual uint32_t getLastFrame() const = 0;
};

class AudioFileThread : public juce::Thread
class AudioFileThread : public Thread
{
public:
AudioFileThread(AbstractAudioPlayer* const player, const double sampleRate)
: juce::Thread("AudioFileThread"),
: Thread("AudioFileThread"),
kPlayer(player),
fNeedsRead(false),
fFilePtr(nullptr)


+ 1
- 4
source/modules/carla_native/distrho/DistrhoPluginCarla.cpp View File

@@ -23,9 +23,6 @@

#include "DistrhoPluginMain.cpp"

#define DISTRHO_PLUGIN_HAS_UI 1
#define DISTRHO_UI_EXTERNAL

#if DISTRHO_PLUGIN_HAS_UI
# include "DistrhoUIMain.cpp"
# ifdef DISTRHO_UI_OPENGL
@@ -205,7 +202,7 @@ public:
void carla_setUiTitle(const char* const uiTitle)
{
#ifdef DISTRHO_UI_OPENGL
glWindow.setWindowTitle(uiName);
glWindow.setWindowTitle(uiTitle);
#else
writeMsg("uiTitle\n", 8);
writeAndFixMsg(uiTitle);


+ 1
- 1
source/modules/carla_native/vex/cADSR.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCADSR_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cArp.h View File

@@ -37,7 +37,7 @@
#include "cArpSettings.h"
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cChorus.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCCHORUS_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cDelay.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCDELAY_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cReverb.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCREVERB_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cSyntModule.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCSYNTMODULE_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cVoice.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCVOICE_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#else
#include "../StandardHeader.h"
#endif


+ 1
- 1
source/modules/carla_native/vex/cWaveRenderer.h View File

@@ -35,7 +35,7 @@
#define __JUCETICE_VEXCWAVERENDERER_HEADER__
#ifdef CARLA_EXPORT
#include "JuceHeader.h"
#include "juce_audio_basics.h"
#include "ResourceFile.h"
#else
#include "../StandardHeader.h"


+ 26
- 0
source/modules/juce_audio_basics.h View File

@@ -0,0 +1,26 @@
/*
* Carla Juce setup
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/

#ifndef CARLA_JUCE_AUDIO_BASICS_H_INCLUDED
#define CARLA_JUCE_AUDIO_BASICS_H_INCLUDED

#include "juce_core.h"

#include "juce_audio_basics/AppConfig.h"
#include "juce_audio_basics/juce_audio_basics.h"

#endif // CARLA_JUCE_AUDIO_BASICS_H_INCLUDED

+ 1
- 1
source/modules/juce_audio_basics/Makefile View File

@@ -82,7 +82,7 @@ win64: ../juce_audio_basics.win64.a
# --------------------------------------------------------------

clean:
rm -f *.o ../juce_audio_basics.*
rm -f *.o ../juce_audio_basics*.a

debug:
$(MAKE) DEBUG=true

+ 24
- 0
source/modules/juce_core.h View File

@@ -0,0 +1,24 @@
/*
* Carla Juce setup
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* For a full copy of the GNU General Public License see the doc/GPL.txt file.
*/
#ifndef CARLA_JUCE_CORE_H_INCLUDED
#define CARLA_JUCE_CORE_H_INCLUDED
#include "juce_core/AppConfig.h"
#include "juce_core/juce_core.h"
#endif // CARLA_JUCE_CORE_H_INCLUDED

+ 1
- 1
source/modules/juce_core/Makefile View File

@@ -82,7 +82,7 @@ win64: ../juce_core.win64.a
# --------------------------------------------------------------

clean:
rm -f *.o ../juce_core.*
rm -f *.o ../juce_core*.a

debug:
$(MAKE) DEBUG=true

+ 1
- 1
source/modules/lilv/Makefile View File

@@ -102,7 +102,7 @@ lilv.c.%64.o: lilv.c
# --------------------------------------------------------------

clean:
rm -f *.o ../lilv.*
rm -f *.o ../lilv*.a

debug:
$(MAKE) DEBUG=true

+ 1
- 1
source/modules/rtmempool/Makefile View File

@@ -77,7 +77,7 @@ win64: ../rtmempool.win64.a
# --------------------------------------------------------------

clean:
rm -f *.o ../rtmempool.*
rm -f *.o ../rtmempool*.a

debug:
$(MAKE) DEBUG=true

+ 1
- 1
source/modules/theme/Makefile View File

@@ -147,7 +147,7 @@ install: ../carlastyle.so
install -m 644 $< $(QT_STYLES_DIR)

clean:
rm -f *.o ../theme.* $(FILES)
rm -f *.o ../theme*.a $(FILES)

debug:
$(MAKE) DEBUG=true

+ 1
- 1
source/modules/widgets/Makefile View File

@@ -58,7 +58,7 @@ moc_%.cpp: %.hpp
# --------------------------------------------------------------

clean:
rm -f *.o ../widgets.* $(FILES)
rm -f *.o ../widgets*.a $(FILES)

debug:
$(MAKE) DEBUG=true

+ 1
- 1
source/utils/CarlaJuceUtils.hpp View File

@@ -20,7 +20,7 @@

#include "CarlaUtils.hpp"

#include "JuceHeader.h"
#include "juce_core.h"

#define CARLA_PREVENT_HEAP_ALLOCATION \
JUCE_PREVENT_HEAP_ALLOCATION


+ 2
- 1
source/utils/CarlaPipeUtils.hpp View File

@@ -1,5 +1,6 @@
/*
* Carla Pipe utils
* Carla Pipe utils based on lv2fil UI code
* Copyright (C) 2009 Nedko Arnaudov <nedko@arnaudov.name>
* Copyright (C) 2013 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or


Loading…
Cancel
Save