@@ -211,7 +211,9 @@ public: | |||||
#endif | #endif | ||||
const bool isFloating) | const bool isFloating) | ||||
: fPlugin(plugin), | : fPlugin(plugin), | ||||
#if DISTRHO_PLUGIN_WANT_STATE | |||||
fPluginEventQueue(eventQueue), | fPluginEventQueue(eventQueue), | ||||
#endif | |||||
fEventQueue(eventQueue->fEventQueue), | fEventQueue(eventQueue->fEventQueue), | ||||
fCachedParameters(eventQueue->fCachedParameters), | fCachedParameters(eventQueue->fCachedParameters), | ||||
#if DISTRHO_PLUGIN_WANT_PROGRAMS | #if DISTRHO_PLUGIN_WANT_PROGRAMS | ||||
@@ -534,7 +536,9 @@ public: | |||||
private: | private: | ||||
// Plugin and UI | // Plugin and UI | ||||
PluginExporter& fPlugin; | PluginExporter& fPlugin; | ||||
#if DISTRHO_PLUGIN_WANT_STATE | |||||
ClapEventQueue* const fPluginEventQueue; | ClapEventQueue* const fPluginEventQueue; | ||||
#endif | |||||
ClapEventQueue::Queue& fEventQueue; | ClapEventQueue::Queue& fEventQueue; | ||||
ClapEventQueue::CachedParameters& fCachedParameters; | ClapEventQueue::CachedParameters& fCachedParameters; | ||||
#if DISTRHO_PLUGIN_WANT_PROGRAMS | #if DISTRHO_PLUGIN_WANT_PROGRAMS | ||||
@@ -460,7 +460,7 @@ END_NAMESPACE_DISTRHO | |||||
// fetch current sample rate | // fetch current sample rate | ||||
#if DISTRHO_PLUGIN_NUM_INPUTS != 0 | #if DISTRHO_PLUGIN_NUM_INPUTS != 0 | ||||
dataSize = sizeof(Float64); | 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 | #elif DISTRHO_PLUGIN_NUM_OUTPUTS != 0 | ||||
dataSize = sizeof(Float64); | dataSize = sizeof(Float64); | ||||
AudioUnitGetProperty(component, kAudioUnitProperty_SampleRate, kAudioUnitScope_Output, 0, &sampleRate, &dataSize); | AudioUnitGetProperty(component, kAudioUnitProperty_SampleRate, kAudioUnitScope_Output, 0, &sampleRate, &dataSize); | ||||
@@ -485,6 +485,9 @@ END_NAMESPACE_DISTRHO | |||||
} | } | ||||
return view; | return view; | ||||
// maybe unused | |||||
(void)scope; | |||||
} | } | ||||
@end | @end | ||||