Browse Source

Fix build

Signed-off-by: falkTX <falktx@falktx.com>
pull/452/head
falkTX 1 year ago
parent
commit
96aa685d38
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 8 additions and 1 deletions
  1. +4
    -0
      distrho/src/DistrhoPluginCLAP.cpp
  2. +4
    -1
      distrho/src/DistrhoUIAU.mm

+ 4
- 0
distrho/src/DistrhoPluginCLAP.cpp View File

@@ -211,7 +211,9 @@ public:
#endif
const bool isFloating)
: fPlugin(plugin),
#if DISTRHO_PLUGIN_WANT_STATE
fPluginEventQueue(eventQueue),
#endif
fEventQueue(eventQueue->fEventQueue),
fCachedParameters(eventQueue->fCachedParameters),
#if DISTRHO_PLUGIN_WANT_PROGRAMS
@@ -534,7 +536,9 @@ public:
private:
// Plugin and UI
PluginExporter& fPlugin;
#if DISTRHO_PLUGIN_WANT_STATE
ClapEventQueue* const fPluginEventQueue;
#endif
ClapEventQueue::Queue& fEventQueue;
ClapEventQueue::CachedParameters& fCachedParameters;
#if DISTRHO_PLUGIN_WANT_PROGRAMS


+ 4
- 1
distrho/src/DistrhoUIAU.mm View File

@@ -460,7 +460,7 @@ END_NAMESPACE_DISTRHO
// fetch current sample rate
#if DISTRHO_PLUGIN_NUM_INPUTS != 0
dataSize = sizeof(Float64);
AudioUnitGetProperty(component, kAudioUnitProperty_SampleRate, kAudioUnitScopeInput, 0, &sampleRate, &dataSize);
AudioUnitGetProperty(component, kAudioUnitProperty_SampleRate, kAudioUnitScope_Input, 0, &sampleRate, &dataSize);
#elif DISTRHO_PLUGIN_NUM_OUTPUTS != 0
dataSize = sizeof(Float64);
AudioUnitGetProperty(component, kAudioUnitProperty_SampleRate, kAudioUnitScope_Output, 0, &sampleRate, &dataSize);
@@ -485,6 +485,9 @@ END_NAMESPACE_DISTRHO
}

return view;

// maybe unused
(void)scope;
}

@end


Loading…
Cancel
Save