Browse Source

Update some comments

pull/6/head
falkTX 8 years ago
parent
commit
87217454c3
2 changed files with 9 additions and 7 deletions
  1. +6
    -7
      distrho/DistrhoInfo.hpp
  2. +3
    -0
      distrho/DistrhoPlugin.hpp

+ 6
- 7
distrho/DistrhoInfo.hpp View File

@@ -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');
}

/* ----------------------------------------------------------------------------------------


+ 3
- 0
distrho/DistrhoPlugin.hpp View File

@@ -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


Loading…
Cancel
Save