From 26b8eba64b18cbb56e6e505b6cde9836d89cdc21 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 23 Mar 2016 12:53:01 +0100 Subject: [PATCH] Update DPF --- dpf/distrho/DistrhoInfo.hpp | 13 ++++++------- dpf/distrho/DistrhoPlugin.hpp | 3 +++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/dpf/distrho/DistrhoInfo.hpp b/dpf/distrho/DistrhoInfo.hpp index 835969e..7a4661e 100644 --- a/dpf/distrho/DistrhoInfo.hpp +++ b/dpf/distrho/DistrhoInfo.hpp @@ -91,11 +91,10 @@ START_NAMESPACE_DISTRHO /** Get the plugin version, in hexadecimal. - TODO format to be defined */ uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } /** @@ -104,7 +103,7 @@ START_NAMESPACE_DISTRHO */ int64_t getUniqueId() const override { - return cconst('M', 'u', 't', 'e'); + return d_cconst('M', 'u', 't', 'e'); } /* ---------------------------------------------------------------------------------------- @@ -186,12 +185,12 @@ START_NAMESPACE_DISTRHO uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } int64_t getUniqueId() const override { - return cconst('G', 'a', 'i', 'n'); + return d_cconst('G', 'a', 'i', 'n'); } /* ---------------------------------------------------------------------------------------- @@ -298,12 +297,12 @@ START_NAMESPACE_DISTRHO uint32_t getVersion() const override { - return 0x1000; + return d_version(1, 0, 0); } int64_t getUniqueId() const override { - return cconst('P', 'r', 'o', 'g'); + return d_cconst('P', 'r', 'o', 'g'); } /* ---------------------------------------------------------------------------------------- diff --git a/dpf/distrho/DistrhoPlugin.hpp b/dpf/distrho/DistrhoPlugin.hpp index 76dcdd3..ebb9a9d 100644 --- a/dpf/distrho/DistrhoPlugin.hpp +++ b/dpf/distrho/DistrhoPlugin.hpp @@ -529,6 +529,9 @@ public: Write a MIDI output event.@n This function must only be called during run().@n Returns false when the host buffer is full, in which case do not call this again until the next run(). + @note This function is not implemented yet!@n + It's here so that developers can prepare MIDI plugins in advance.@n + If you plan to use this, please report to DPF authos so it can be implemented. */ bool writeMidiEvent(const MidiEvent& midiEvent) noexcept; #endif