Browse Source

Cleanups, test random OSX things..

tags/v1.9.11
falkTX FilipeCSnuk 6 years ago
parent
commit
ae7a7a4b66
10 changed files with 29 additions and 40 deletions
  1. +2
    -2
      source/backend/CarlaBackend.doxygen
  2. +0
    -1
      source/backend/Makefile
  3. +10
    -1
      source/backend/engine/CarlaEngine.cpp
  4. +2
    -2
      source/backend/utils/CachedPlugins.cpp
  5. +0
    -3
      source/bridges-plugin/Makefile
  6. +0
    -1
      source/carla_backend.pro
  7. +0
    -5
      source/discovery/Makefile
  8. +0
    -9
      source/plugin/Makefile
  9. +1
    -15
      source/plugin/carla-base.cpp
  10. +14
    -1
      source/utils/CarlaPluginUI.cpp

+ 2
- 2
source/backend/CarlaBackend.doxygen View File

@@ -243,8 +243,8 @@ INCLUDE_PATH =
INCLUDE_FILE_PATTERNS = INCLUDE_FILE_PATTERNS =
PREDEFINED = DOXYGEN \ PREDEFINED = DOXYGEN \
BUILDING_CARLA REAL_BUILD \ BUILDING_CARLA REAL_BUILD \
HAVE_DGL HAVE_LIBLO HAVE_LIBMAGIC HAVE_FLUIDSYNTH HAVE_LINUXSAMPLER HAVE_PROJECTM HAVE_X11 \
HAVE_EXPERIMENTAL_PLUGINS HAVE_ZYN_DEPS HAVE_ZYN_UI_DEPS
HAVE_DGL HAVE_LIBLO HAVE_LIBMAGIC HAVE_FLUIDSYNTH HAVE_PROJECTM HAVE_X11 \
HAVE_ZYN_DEPS HAVE_ZYN_UI_DEPS
EXPAND_AS_DEFINED = EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES SKIP_FUNCTION_MACROS = YES
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------


+ 0
- 1
source/backend/Makefile View File

@@ -54,7 +54,6 @@ STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
STANDALONE_LINK_FLAGS += $(LIBLO_LIBS) STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
STANDALONE_LINK_FLAGS += $(MAGIC_LIBS) STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS) STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
STANDALONE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
STANDALONE_LINK_FLAGS += $(X11_LIBS) STANDALONE_LINK_FLAGS += $(X11_LIBS)


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


+ 10
- 1
source/backend/engine/CarlaEngine.cpp View File

@@ -2052,7 +2052,16 @@ bool CarlaEngine::loadProjectInternal(water::XmlDocument& xmlDoc)
} }
} }


CARLA_SAFE_ASSERT_CONTINUE(option != -1);
if (option == -1)
{
// check old stuff, unhandled now
if (tag == "GIG_PATH")
continue;

// hmm something is wrong..
carla_stderr2("CarlaEngine::loadProjectInternal() - Unhandled option '%s'", tag.toRawUTF8());
continue;
}


setOption(static_cast<EngineOption>(option), value, valueStr); setOption(static_cast<EngineOption>(option), value, valueStr);
} }


+ 2
- 2
source/backend/utils/CachedPlugins.cpp View File

@@ -83,11 +83,11 @@ void findSFZsIfNeeded(const char* const sfzPaths)


const StringArray splitPaths(StringArray::fromTokens(sfzPaths, CARLA_OS_SPLIT_STR, "")); const StringArray splitPaths(StringArray::fromTokens(sfzPaths, CARLA_OS_SPLIT_STR, ""));


for (String path : splitPaths)
for (String *it = splitPaths.begin(), *end = splitPaths.end(); it != end; ++it)
{ {
Array<File> results; Array<File> results;


if (File(path).findChildFiles(results, File::findFiles|File::ignoreHiddenFiles, true, "*.sfz") > 0)
if (File(*it).findChildFiles(results, File::findFiles|File::ignoreHiddenFiles, true, "*.sfz") > 0)
gSFZs.addArray(results); gSFZs.addArray(results);
} }
} }


+ 0
- 3
source/bridges-plugin/Makefile View File

@@ -73,9 +73,6 @@ NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS) $(LIBLO_FLAGS)
NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS) NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS) NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)


NATIVE_BUILD_FLAGS += $(LINUXSAMPLER_FLAGS)
NATIVE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)

NATIVE_LINK_FLAGS += $(FFMPEG_LIBS) NATIVE_LINK_FLAGS += $(FFMPEG_LIBS)
NATIVE_LINK_FLAGS += $(MAGIC_LIBS) NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
NATIVE_LINK_FLAGS += $(SNDFILE_LIBS) NATIVE_LINK_FLAGS += $(SNDFILE_LIBS)


+ 0
- 1
source/carla_backend.pro View File

@@ -17,7 +17,6 @@ DEFINES += REAL_BUILD
DEFINES += HAVE_LIBLO DEFINES += HAVE_LIBLO
DEFINES += HAVE_LIBMAGIC DEFINES += HAVE_LIBMAGIC
DEFINES += HAVE_FLUIDSYNTH DEFINES += HAVE_FLUIDSYNTH
DEFINES += HAVE_LINUXSAMPLER
DEFINES += HAVE_ZYN_DEPS DEFINES += HAVE_ZYN_DEPS
DEFINES += HAVE_ZYN_UI_DEPS DEFINES += HAVE_ZYN_UI_DEPS




+ 0
- 5
source/discovery/Makefile View File

@@ -47,11 +47,6 @@ NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS) NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
endif endif


ifeq ($(HAVE_LINUXSAMPLER),true)
NATIVE_BUILD_FLAGS += $(LINUXSAMPLER_FLAGS)
NATIVE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
endif

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


LIBS_native = $(MODULEDIR)/lilv.a LIBS_native = $(MODULEDIR)/lilv.a


+ 0
- 9
source/plugin/Makefile View File

@@ -32,18 +32,10 @@ ifeq ($(HAVE_FLUIDSYNTH),true)
BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS) BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS)
endif endif


ifeq ($(HAVE_LINUXSAMPLER),true)
BUILD_CXX_FLAGS += $(LINUXSAMPLER_FLAGS)
endif

ifeq ($(HAVE_X11),true) ifeq ($(HAVE_X11),true)
BUILD_CXX_FLAGS += $(X11_FLAGS) BUILD_CXX_FLAGS += $(X11_FLAGS)
endif endif


ifeq ($(CARLA_ZYN_COMPAT),true)
BUILD_CXX_FLAGS += -DCARLA_ZYN_LV2_EXPORTED
endif

# ---------------------------------------------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------------------------------------------
# Libs # Libs


@@ -78,7 +70,6 @@ LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)


LINK_FLAGS += $(FLUIDSYNTH_LIBS) LINK_FLAGS += $(FLUIDSYNTH_LIBS)
LINK_FLAGS += $(LIBLO_LIBS) LINK_FLAGS += $(LIBLO_LIBS)
LINK_FLAGS += $(LINUXSAMPLER_LIBS)
LINK_FLAGS += $(MAGIC_LIBS) LINK_FLAGS += $(MAGIC_LIBS)
LINK_FLAGS += $(X11_LIBS) LINK_FLAGS += $(X11_LIBS)




+ 1
- 15
source/plugin/carla-base.cpp View File

@@ -76,21 +76,7 @@ struct PluginListManager {
std::strcmp(desc->label, "carlapatchbay16" ) == 0 || std::strcmp(desc->label, "carlapatchbay16" ) == 0 ||
std::strcmp(desc->label, "carlapatchbay32" ) == 0 || std::strcmp(desc->label, "carlapatchbay32" ) == 0 ||
std::strcmp(desc->label, "bigmeter" ) == 0 || std::strcmp(desc->label, "bigmeter" ) == 0 ||
std::strcmp(desc->label, "notes" ) == 0 ||
#ifdef CARLA_ZYN_LV2_EXPORTED
std::strcmp(desc->label, "zynalienwah" ) == 0 ||
std::strcmp(desc->label, "zynchorus" ) == 0 ||
std::strcmp(desc->label, "zyndistortion" ) == 0 ||
std::strcmp(desc->label, "zyndynamicfilter") == 0 ||
std::strcmp(desc->label, "zynecho" ) == 0 ||
std::strcmp(desc->label, "zynphaser" ) == 0 ||
std::strcmp(desc->label, "zynreverb" ) == 0 ||
std::strcmp(desc->label, "zynaddsubfx" ) == 0 ||
#endif
std::strcmp(desc->label, "at1" ) == 0 ||
std::strcmp(desc->label, "bls1" ) == 0 ||
std::strcmp(desc->label, "rev1-ambisonic" ) == 0 ||
std::strcmp(desc->label, "rev1-stereo" ) == 0)
std::strcmp(desc->label, "notes" ) == 0)
{ {
descs.append(desc); descs.append(desc);
} }


+ 14
- 1
source/utils/CarlaPluginUI.cpp View File

@@ -382,7 +382,9 @@ private:
backing:(NSBackingStoreType)bufferingType backing:(NSBackingStoreType)bufferingType
defer:(BOOL)flag; defer:(BOOL)flag;
- (void) setCallback:(CarlaPluginUI::Callback*)cb; - (void) setCallback:(CarlaPluginUI::Callback*)cb;
- (BOOL) acceptsFirstResponder;
- (BOOL) canBecomeKeyWindow; - (BOOL) canBecomeKeyWindow;
- (BOOL) canBecomeMainWindow;
- (BOOL) windowShouldClose:(id)sender; - (BOOL) windowShouldClose:(id)sender;
- (NSSize) windowWillResize:(NSWindow*)sender toSize:(NSSize)frameSize; - (NSSize) windowWillResize:(NSWindow*)sender toSize:(NSSize)frameSize;
@end @end
@@ -418,17 +420,27 @@ private:
callback = cb; callback = cb;
} }


- (BOOL)acceptsFirstResponder
{
return YES;
}

- (BOOL)canBecomeKeyWindow - (BOOL)canBecomeKeyWindow
{ {
return YES; return YES;
} }


- (BOOL)canBecomeMainWindow
{
return NO;
}

- (BOOL)windowShouldClose:(id)sender - (BOOL)windowShouldClose:(id)sender
{ {
if (callback != nil) if (callback != nil)
callback->handlePluginUIClosed(); callback->handlePluginUIClosed();


return NO;
return YES;


// unused // unused
(void)sender; (void)sender;
@@ -494,6 +506,7 @@ public:
if (fView == nullptr) if (fView == nullptr)
return; return;


[fView removeFromSuperview];
[fWindow close]; [fWindow close];
[fView release]; [fView release];
[fWindow release]; [fWindow release];


Loading…
Cancel
Save