cmajor icon indicating copy to clipboard operation
cmajor copied to clipboard

Returning loadPatch value from JUCEPluginBase

Open remaininlight opened this issue 11 months ago • 0 comments

The return value of Patch::loadPatch (https://github.com/cmajor-lang/cmajor/blob/main/include/cmajor/helpers/cmaj_Patch.h#L1914) is a boolean indicating whether the patch is playable or not

This return value would be useful for code using the JUCEPluginBase but is currently swallowed in JUCEPluginBase::loadPatch (https://github.com/cmajor-lang/cmajor/blob/main/include/cmajor/helpers/cmaj_JUCEPlugin.h#L117), which returns void

This PR forwards the value from the Patch out through the Plugin method

remaininlight avatar Mar 19 '24 15:03 remaininlight