clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 79f342f4ce4196398a866f1a5ab4dfa1cbbfd96d
parent 267fa0f7b8871f0ec5a15b8f791a5ef7597fa727
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Mon,  7 Jun 2021 22:17:02 +0200

Fix compilation errors

Diffstat:
Mexamples/host/plugin-host.cc | 10+++++-----
Mexamples/host/plugin-host.hh | 2+-
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/examples/host/plugin-host.cc b/examples/host/plugin-host.cc @@ -56,7 +56,7 @@ PluginHost::PluginHost(Engine &engine) : QObject(&engine), engine_(engine) { hostQuickControls_.pages_changed = PluginHost::clapQuickControlsPagesChanged; hostQuickControls_.selected_page_changed = PluginHost::clapQuickControlsSelectedPageChanged; - hostState_.set_dirty = PluginHost::clapStateSetDirty; + hostState_.mark_dirty = PluginHost::clapMarkSetDirty; initThreadPool(); } @@ -1033,18 +1033,18 @@ bool PluginHost::loadNativePluginPreset(const std::string &path) { if (!pluginPresetLoad_) return false; - if (!pluginPresetLoad_->load_from_file) + if (!pluginPresetLoad_->from_file) throw std::logic_error("clap_plugin_preset_load does not implement load_from_file"); - return pluginPresetLoad_->load_from_file(plugin_, path.c_str()); + return pluginPresetLoad_->from_file(plugin_, path.c_str()); } -void PluginHost::clapStateSetDirty(const clap_host *host) { +void PluginHost::clapMarkSetDirty(const clap_host *host) { checkForMainThread(); auto h = fromHost(host); - if (!h->pluginState_ || !h->pluginState_->save || !h->pluginState_->restore) + if (!h->pluginState_ || !h->pluginState_->save || !h->pluginState_->load) throw std::logic_error("Plugin called clap_host_state.set_dirty() but the host does not " "provide a complete clap_plugin_state interface."); diff --git a/examples/host/plugin-host.hh b/examples/host/plugin-host.hh @@ -119,7 +119,7 @@ private: /* clap host gui callbacks */ static bool clapGuiResize(const clap_host *host, int32_t width, int32_t height); - static void clapStateSetDirty(const clap_host *host); + static void clapMarkSetDirty(const clap_host *host); private: Engine &engine_;