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:
parent
a42a498f5e
commit
9c192940e0
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue