clap

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

commit 436345d66c532d8bab8f6181729e01d48bea1f74
parent bce6f29cab15897a31d9e0a19199634bcbdbf9cf
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Thu, 10 Mar 2022 18:17:08 +0100

Merge branch 'main' into next

Diffstat:
Minclude/clap/ext/draft/tuning.h | 10++++++++--
Minclude/clap/version.h | 2+-
2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/clap/ext/draft/tuning.h b/include/clap/ext/draft/tuning.h @@ -4,7 +4,7 @@ #include "../../events.h" #include "../../string-sizes.h" -static CLAP_CONSTEXPR const char CLAP_EXT_TUNING[] = "clap.tuning.draft/1"; +static CLAP_CONSTEXPR const char CLAP_EXT_TUNING[] = "clap.tuning.draft/2"; #ifdef __cplusplus extern "C" { @@ -43,13 +43,19 @@ typedef struct clap_host_tuning { // // sample_offset is the sample offset from the begining of the current process block. // + // should_play(...) should be checked before calling this function. + // // [audio-thread & in-process] double (*get_relative)(const clap_host_t *host, clap_id tuning_id, - int32_t key, int32_t channel, + int32_t key, uint32_t sample_offset); + // Returns true if the note should be played. + // [audio-thread & in-process] + bool (*should_play)(const clap_host_t *host, clap_id tuning_id, int32_t channel, int32_t key); + // Returns the number of tunings in the pool. // [main-thread] uint32_t (*get_tuning_count)(const clap_host_t *host); diff --git a/include/clap/version.h b/include/clap/version.h @@ -22,7 +22,7 @@ typedef struct clap_version { static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_MAJOR = 0; static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_MINOR = 21; -static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_REVISION = 0; +static CLAP_CONSTEXPR const uint32_t CLAP_VERSION_REVISION = 1; static CLAP_CONSTEXPR const clap_version_t CLAP_VERSION = { CLAP_VERSION_MAJOR, CLAP_VERSION_MINOR, CLAP_VERSION_REVISION};