diff --git a/distrho/DistrhoInfo.hpp b/distrho/DistrhoInfo.hpp index 835969e09..7a4661e4c 100644 --- a/distrho/DistrhoInfo.hpp +++ b/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/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index 76dcdd32d..ebb9a9dc2 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -529,6 +529,9 @@ class Plugin 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