1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

VST3 Client: Avoid returning kResultNotImplemented from setComponentState

The base implementation of this function does nothing, and returns 'not
implemented'. It is more correct to return 'ok', to indicate that
setting the component state succeeded.
This commit is contained in:
reuk 2024-06-03 12:04:24 +01:00
parent a42a498f5e
commit 9c192940e0
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -1040,7 +1040,7 @@ public:
#endif
//==============================================================================
tresult PLUGIN_API setComponentState (IBStream* stream) override
tresult PLUGIN_API setComponentState (IBStream*) override
{
// As an IEditController member, the host should only call this from the message thread.
assertHostMessageThread();
@ -1065,7 +1065,7 @@ public:
if (auto* handler = getComponentHandler())
handler->restartComponent (Vst::kParamValuesChanged);
return Vst::EditController::setComponentState (stream);
return kResultOk;
}
void setAudioProcessor (JuceAudioProcessor* audioProc)