Skip to content

Commit

Permalink
Set unique ids, audio port group hints and vst3 categories
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jul 22, 2022
1 parent d9e08f6 commit b322fc7
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 15 deletions.
5 changes: 4 additions & 1 deletion plugins/bitcrush/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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')

Expand Down
9 changes: 8 additions & 1 deletion plugins/bitcrush/DistrhoPluginMaxGen.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]);
Expand Down
14 changes: 7 additions & 7 deletions plugins/common/DistrhoPluginMaxGen.hpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -44,6 +44,11 @@ class DistrhoPluginMaxGen : public Plugin
return DISTRHO_PLUGIN_DESCRIPTION;
}

int64_t getUniqueId() const noexcept override
{
return DISTRHO_PLUGIN_VERSION;
}

const char* getMaker() const noexcept override
{
return "DISTRHO";
Expand All @@ -64,15 +69,10 @@ class DistrhoPluginMaxGen : public Plugin
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;

// -------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion plugins/freeverb/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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')
Expand Down
9 changes: 8 additions & 1 deletion plugins/freeverb/DistrhoPluginMaxGen.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]);
Expand Down
3 changes: 2 additions & 1 deletion plugins/gigaverb/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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')
Expand Down
9 changes: 8 additions & 1 deletion plugins/gigaverb/DistrhoPluginMaxGen.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]);
Expand Down
3 changes: 2 additions & 1 deletion plugins/pitchshift/DistrhoPluginInfo.h
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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')
Expand Down
9 changes: 8 additions & 1 deletion plugins/pitchshift/DistrhoPluginMaxGen.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit b322fc7

Please sign in to comment.