Browse Source

Merge branch 'master' into develop

pull/148/head
falkTX 6 years ago
parent
commit
2b71c884ac
2 changed files with 12 additions and 0 deletions
  1. +2
    -0
      Makefile.base.mk
  2. +10
    -0
      distrho/DistrhoInfo.hpp

+ 2
- 0
Makefile.base.mk View File

@@ -128,6 +128,8 @@ ifeq ($(WINDOWS),true)
# mingw has issues with this specific optimization
# See https://github.com/falkTX/Carla/issues/696
BASE_OPTS += -fno-rerun-cse-after-loop
# See https://github.com/falkTX/Carla/issues/855
BASE_OPTS += -mstackrealign
ifeq ($(BUILDING_FOR_WINDOWS),true)
BASE_FLAGS += -DBUILDING_CARLA_FOR_WINDOWS
endif


+ 10
- 0
distrho/DistrhoInfo.hpp View File

@@ -543,6 +543,16 @@ START_NAMESPACE_DISTRHO
*/
#define DISTRHO_PLUGIN_WANT_STATE 1

/**
Wherever the plugin implements the full state API.
When this macro is enabled, the plugin must implement a new getState(const char* key) function, which the host calls when saving its session/project.
This is useful for plugins that have custom internal values not exposed to the host as key-value state pairs or parameters.
Most simple effects and synths will not need this.
@note this macro is automatically enabled if a plugin has programs and state, as the key-value state pairs need to be updated when the current program changes.
@see Plugin::getState(const char*)
*/
#define DISTRHO_PLUGIN_WANT_FULL_STATE 1

/**
Wherever the plugin wants time position information from the host.
@see Plugin::getTimePosition()


Loading…
Cancel
Save