Browse Source

Set unique ids, audio port group hints and vst3 categories

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 2 years ago
parent
commit
b322fc7492
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
9 changed files with 49 additions and 15 deletions
  1. +4
    -1
      plugins/bitcrush/DistrhoPluginInfo.h
  2. +8
    -1
      plugins/bitcrush/DistrhoPluginMaxGen.cpp
  3. +7
    -7
      plugins/common/DistrhoPluginMaxGen.hpp
  4. +2
    -1
      plugins/freeverb/DistrhoPluginInfo.h
  5. +8
    -1
      plugins/freeverb/DistrhoPluginMaxGen.cpp
  6. +2
    -1
      plugins/gigaverb/DistrhoPluginInfo.h
  7. +8
    -1
      plugins/gigaverb/DistrhoPluginMaxGen.cpp
  8. +2
    -1
      plugins/pitchshift/DistrhoPluginInfo.h
  9. +8
    -1
      plugins/pitchshift/DistrhoPluginMaxGen.cpp

+ 4
- 1
plugins/bitcrush/DistrhoPluginInfo.h View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -26,6 +26,9 @@
#define DISTRHO_PLUGIN_NUM_INPUTS 1
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:DistortionPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Distortion"

#define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Bitcrush example."
#define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'b', 'c')



+ 8
- 1
plugins/bitcrush/DistrhoPluginMaxGen.cpp View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
// -----------------------------------------------------------------------
// Init
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
{
port.groupId = input ? kPortGroupMono : kPortGroupStereo;
Plugin::initAudioPort(input, index, port);
}
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
{
ParamInfo& info(fGenState->params[index]);


+ 7
- 7
plugins/common/DistrhoPluginMaxGen.hpp View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -44,6 +44,11 @@ protected:
return DISTRHO_PLUGIN_DESCRIPTION;
}
int64_t getUniqueId() const noexcept override
{
return DISTRHO_PLUGIN_VERSION;
}
const char* getMaker() const noexcept override
{
return "DISTRHO";
@@ -64,15 +69,10 @@ protected:
return d_version(0, 1, 0);
}
int64_t getUniqueId() const noexcept override
{
// TODO
return d_cconst('D', 'M', 'a', 'G');
}
// -------------------------------------------------------------------
// Init
void initAudioPort(bool input, uint32_t index, AudioPort& port) override;
void initParameter(uint32_t index, Parameter& parameter) override;
// -------------------------------------------------------------------


+ 2
- 1
plugins/freeverb/DistrhoPluginInfo.h View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb"

#define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Freeverb example."
#define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'f', 'v')


+ 8
- 1
plugins/freeverb/DistrhoPluginMaxGen.cpp View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
// -----------------------------------------------------------------------
// Init
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
{
port.groupId = kPortGroupMono;
Plugin::initAudioPort(input, index, port);
}
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
{
ParamInfo& info(fGenState->params[index]);


+ 2
- 1
plugins/gigaverb/DistrhoPluginInfo.h View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb"

#define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Gigaverb example."
#define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'g', 'v')


+ 8
- 1
plugins/gigaverb/DistrhoPluginMaxGen.cpp View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
// -----------------------------------------------------------------------
// Init
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
{
port.groupId = kPortGroupStereo;
Plugin::initAudioPort(input, index, port);
}
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
{
ParamInfo& info(fGenState->params[index]);


+ 2
- 1
plugins/pitchshift/DistrhoPluginInfo.h View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:PitchPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Pitch Shift"

#define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Pitchshifter example."
#define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'p', 's')


+ 8
- 1
plugins/pitchshift/DistrhoPluginMaxGen.cpp View File

@@ -1,6 +1,6 @@
/*
* DPF Max Gen
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
// -----------------------------------------------------------------------
// Init
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
{
port.groupId = input ? kPortGroupMono : kPortGroupStereo;
Plugin::initAudioPort(input, index, port);
}
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
{
ParamInfo& info(fGenState->params[index]);


Loading…
Cancel
Save