mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
Fully implement CLAP note name extension
This commit is contained in:
@@ -79,6 +79,8 @@ using ClapMainThreadControlRequest =
|
||||
clap::ext::gui::plugin::Show,
|
||||
clap::ext::gui::plugin::Hide,
|
||||
clap::ext::latency::plugin::Get,
|
||||
clap::ext::note_name::plugin::Count,
|
||||
clap::ext::note_name::plugin::Get,
|
||||
clap::ext::note_ports::plugin::Count,
|
||||
clap::ext::note_ports::plugin::Get,
|
||||
clap::ext::params::plugin::Count,
|
||||
|
||||
@@ -23,7 +23,7 @@ Yabridge currently tracks CLAP 1.1.1. The implementation status for CLAP's core
|
||||
| `clap.gui` | :heavy_check_mark: Currently only does embedded GUIs |
|
||||
| `clap.latency` | :heavy_check_mark: |
|
||||
| `clap.log` | :heavy_check_mark: Always supported with or without bridging |
|
||||
| `clap.note-name` | :x: Not supported yet |
|
||||
| `clap.note-name` | :heavy_check_mark: |
|
||||
| `clap.note-ports` | :heavy_check_mark: |
|
||||
| `clap.params` | :heavy_check_mark: |
|
||||
| `clap.posix-fd-support` | :heavy_exclamation_mark: Not used by Windows plugins |
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <clap/ext/audio-ports.h>
|
||||
#include <clap/ext/gui.h>
|
||||
#include <clap/ext/latency.h>
|
||||
#include <clap/ext/note-name.h>
|
||||
#include <clap/ext/note-ports.h>
|
||||
#include <clap/ext/params.h>
|
||||
#include <clap/ext/render.h>
|
||||
@@ -85,12 +86,13 @@ const clap_plugin_descriptor_t* Descriptor::get() const {
|
||||
return &clap_descriptor;
|
||||
}
|
||||
|
||||
std::array<std::pair<bool, const char*>, 10> SupportedPluginExtensions::list()
|
||||
std::array<std::pair<bool, const char*>, 11> SupportedPluginExtensions::list()
|
||||
const noexcept {
|
||||
return {std::pair(supports_audio_ports, CLAP_EXT_AUDIO_PORTS),
|
||||
std::pair(supports_audio_ports_config, CLAP_EXT_AUDIO_PORTS_CONFIG),
|
||||
std::pair(supports_gui, CLAP_EXT_GUI),
|
||||
std::pair(supports_latency, CLAP_EXT_LATENCY),
|
||||
std::pair(supports_note_name, CLAP_EXT_NOTE_NAME),
|
||||
std::pair(supports_note_ports, CLAP_EXT_NOTE_PORTS),
|
||||
std::pair(supports_params, CLAP_EXT_PARAMS),
|
||||
std::pair(supports_render, CLAP_EXT_RENDER),
|
||||
|
||||
@@ -119,6 +119,7 @@ struct SupportedPluginExtensions {
|
||||
bool supports_audio_ports_config = false;
|
||||
bool supports_gui = false;
|
||||
bool supports_latency = false;
|
||||
bool supports_note_name = false;
|
||||
bool supports_note_ports = false;
|
||||
bool supports_params = false;
|
||||
bool supports_render = false;
|
||||
@@ -130,7 +131,7 @@ struct SupportedPluginExtensions {
|
||||
* Get a list of `<bool, extension_name>` tuples for the supported
|
||||
* extensions. Used during logging.
|
||||
*/
|
||||
std::array<std::pair<bool, const char*>, 10> list() const noexcept;
|
||||
std::array<std::pair<bool, const char*>, 11> list() const noexcept;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
@@ -138,6 +139,7 @@ struct SupportedPluginExtensions {
|
||||
s.value1b(supports_audio_ports_config);
|
||||
s.value1b(supports_gui);
|
||||
s.value1b(supports_latency);
|
||||
s.value1b(supports_note_name);
|
||||
s.value1b(supports_note_ports);
|
||||
s.value1b(supports_params);
|
||||
s.value1b(supports_render);
|
||||
|
||||
Reference in New Issue
Block a user