Browse Source

Misc

pull/6/head
falkTX 8 years ago
parent
commit
2a66f39cdf
3 changed files with 5 additions and 5 deletions
  1. +1
    -1
      distrho/DistrhoInfo.hpp
  2. +2
    -2
      distrho/DistrhoPlugin.hpp
  3. +2
    -2
      distrho/src/DistrhoPluginCarla.cpp

+ 1
- 1
distrho/DistrhoInfo.hpp View File

@@ -533,7 +533,7 @@ START_NAMESPACE_DISTRHO
/**
Wherever the plugin provides its own internal programs.
@see Plugin::initProgramName(uint32_t, String&)
@see Plugin::setProgram(uint32_t)
@see Plugin::loadProgram(uint32_t)
*/
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1



+ 2
- 2
distrho/DistrhoPlugin.hpp View File

@@ -83,7 +83,7 @@ static const uint32_t kParameterIsLogarithmic = 0x08;
When unset, parameter is assumed to be of input type.

Parameter inputs are changed by the host and must not be changed by the plugin.@n
The only exception being when changing programs, see Plugin::setProgram().@n
The only exception being when changing programs, see Plugin::loadProgram().@n
Outputs are changed by the plugin and never modified by the host.
*/
static const uint32_t kParameterIsOutput = 0x10;
@@ -453,7 +453,7 @@ struct TimePosition {
Some of this class functions are only available according to some macros.

DISTRHO_PLUGIN_WANT_PROGRAMS activates program related features.@n
When enabled you need to implement initProgramName() and setProgram().
When enabled you need to implement initProgramName() and loadProgram().

DISTRHO_PLUGIN_WANT_STATE activates internal state features.@n
When enabled you need to implement initStateKey() and setState().


+ 2
- 2
distrho/src/DistrhoPluginCarla.cpp View File

@@ -76,7 +76,7 @@ public:
#if DISTRHO_PLUGIN_WANT_PROGRAMS
void carla_setMidiProgram(const uint32_t realProgram)
{
fUI.programChanged(realProgram);
fUI.programLoaded(realProgram);
}
#endif

@@ -292,7 +292,7 @@ protected:

CARLA_SAFE_ASSERT_RETURN(realProgram < getMidiProgramCount(),);

fPlugin.setProgram(realProgram);
fPlugin.loadProgram(realProgram);
}
#endif



Loading…
Cancel
Save