commit e57168476f9f5549e52afbd4aa89224f1ce93d80
parent aa9b8906a4f85f8ff7895513d7f233e587d28a36
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date: Mon, 12 Jul 2021 17:44:08 +0200
Update plugin-glue layer
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/glue/clap-plugin.cc b/examples/glue/clap-plugin.cc
@@ -53,7 +53,7 @@ namespace clap {
delete &from(plugin);
}
- bool Plugin::clapActivate(const clap_plugin *plugin, int sample_rate) noexcept {
+ bool Plugin::clapActivate(const clap_plugin *plugin, double sample_rate) noexcept {
auto &self = from(plugin);
self.ensureMainThread("clap_plugin.activate");
diff --git a/examples/glue/clap-plugin.hh b/examples/glue/clap-plugin.hh
@@ -33,7 +33,7 @@ namespace clap {
// clap_plugin //
//-------------//
virtual bool init() noexcept { return true; }
- virtual bool activate(int sampleRate) noexcept { return true; }
+ virtual bool activate(double sampleRate) noexcept { return true; }
virtual void deactivate() noexcept {}
virtual bool startProcessing() noexcept { return true; }
virtual void stopProcessing() noexcept {}
@@ -252,7 +252,7 @@ namespace clap {
// clap_plugin
static bool clapInit(const clap_plugin *plugin) noexcept;
static void clapDestroy(const clap_plugin *plugin) noexcept;
- static bool clapActivate(const clap_plugin *plugin, int sample_rate) noexcept;
+ static bool clapActivate(const clap_plugin *plugin, double sample_rate) noexcept;
static void clapDeactivate(const clap_plugin *plugin) noexcept;
static bool clapStartProcessing(const clap_plugin *plugin) noexcept;
static void clapStopProcessing(const clap_plugin *plugin) noexcept;
@@ -434,6 +434,6 @@ namespace clap {
// state
bool isActive_ = false;
bool isProcessing_ = false;
- int sampleRate_ = 0;
+ double sampleRate_ = 0;
};
} // namespace clap
\ No newline at end of file