Implement the CLAP latency extension

This commit is contained in:
Robbert van der Helm
2022-09-26 18:26:42 +02:00
parent 3e0cd725a3
commit c7ea37309d
16 changed files with 171 additions and 5 deletions
+3 -1
View File
@@ -82,6 +82,7 @@ struct Host {
struct SupportedHostExtensions {
// Don't forget to add new extensions to below method
bool supports_audio_ports = false;
bool supports_latency = false;
bool supports_note_ports = false;
bool supports_params = false;
bool supports_tail = false;
@@ -90,11 +91,12 @@ struct SupportedHostExtensions {
* Get a list of `<bool, extension_name>` tuples for the supported
* extensions. Used during logging.
*/
std::array<std::pair<bool, const char*>, 4> list() const noexcept;
std::array<std::pair<bool, const char*>, 5> list() const noexcept;
template <typename S>
void serialize(S& s) {
s.value1b(supports_audio_ports);
s.value1b(supports_latency);
s.value1b(supports_note_ports);
s.value1b(supports_params);
s.value1b(supports_tail);