Skip to content

Commit b322fc7

Browse files
committed
Set unique ids, audio port group hints and vst3 categories
Signed-off-by: falkTX <falktx@falktx.com>
1 parent d9e08f6 commit b322fc7

File tree

9 files changed

+49
-15
lines changed

9 files changed

+49
-15
lines changed

plugins/bitcrush/DistrhoPluginInfo.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -26,6 +26,9 @@
2626
#define DISTRHO_PLUGIN_NUM_INPUTS 1
2727
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
2828

29+
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:DistortionPlugin"
30+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Distortion"
31+
2932
#define DISTRHO_PLUGIN_DESCRIPTION "Max Gen Bitcrush example."
3033
#define DISTRHO_PLUGIN_VERSION d_cconst('D', 'M', 'b', 'c')
3134

plugins/bitcrush/DistrhoPluginMaxGen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
3939
// -----------------------------------------------------------------------
4040
// Init
4141

42+
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
43+
{
44+
port.groupId = input ? kPortGroupMono : kPortGroupStereo;
45+
46+
Plugin::initAudioPort(input, index, port);
47+
}
48+
4249
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
4350
{
4451
ParamInfo& info(fGenState->params[index]);

plugins/common/DistrhoPluginMaxGen.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -44,6 +44,11 @@ class DistrhoPluginMaxGen : public Plugin
4444
return DISTRHO_PLUGIN_DESCRIPTION;
4545
}
4646

47+
int64_t getUniqueId() const noexcept override
48+
{
49+
return DISTRHO_PLUGIN_VERSION;
50+
}
51+
4752
const char* getMaker() const noexcept override
4853
{
4954
return "DISTRHO";
@@ -64,15 +69,10 @@ class DistrhoPluginMaxGen : public Plugin
6469
return d_version(0, 1, 0);
6570
}
6671

67-
int64_t getUniqueId() const noexcept override
68-
{
69-
// TODO
70-
return d_cconst('D', 'M', 'a', 'G');
71-
}
72-
7372
// -------------------------------------------------------------------
7473
// Init
7574

75+
void initAudioPort(bool input, uint32_t index, AudioPort& port) override;
7676
void initParameter(uint32_t index, Parameter& parameter) override;
7777

7878
// -------------------------------------------------------------------

plugins/freeverb/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
2727
#define DISTRHO_PLUGIN_NUM_OUTPUTS 1
2828

2929
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"
30+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb"
3031

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

plugins/freeverb/DistrhoPluginMaxGen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
3939
// -----------------------------------------------------------------------
4040
// Init
4141

42+
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
43+
{
44+
port.groupId = kPortGroupMono;
45+
46+
Plugin::initAudioPort(input, index, port);
47+
}
48+
4249
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
4350
{
4451
ParamInfo& info(fGenState->params[index]);

plugins/gigaverb/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
2727
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
2828

2929
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:ReverbPlugin"
30+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Reverb"
3031

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

plugins/gigaverb/DistrhoPluginMaxGen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
3939
// -----------------------------------------------------------------------
4040
// Init
4141

42+
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
43+
{
44+
port.groupId = kPortGroupStereo;
45+
46+
Plugin::initAudioPort(input, index, port);
47+
}
48+
4249
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
4350
{
4451
ParamInfo& info(fGenState->params[index]);

plugins/pitchshift/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -27,6 +27,7 @@
2727
#define DISTRHO_PLUGIN_NUM_OUTPUTS 2
2828

2929
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:PitchPlugin"
30+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Pitch Shift"
3031

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

plugins/pitchshift/DistrhoPluginMaxGen.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DPF Max Gen
3-
* Copyright (C) 2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2015-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* Permission to use, copy, modify, and/or distribute this software for any purpose with
66
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -39,6 +39,13 @@ DistrhoPluginMaxGen::~DistrhoPluginMaxGen()
3939
// -----------------------------------------------------------------------
4040
// Init
4141

42+
void DistrhoPluginMaxGen::initAudioPort(bool input, uint32_t index, AudioPort& port)
43+
{
44+
port.groupId = input ? kPortGroupMono : kPortGroupStereo;
45+
46+
Plugin::initAudioPort(input, index, port);
47+
}
48+
4249
void DistrhoPluginMaxGen::initParameter(uint32_t index, Parameter& parameter)
4350
{
4451
ParamInfo& info(fGenState->params[index]);

0 commit comments

Comments
 (0)