Skip to content

Commit 748e983

Browse files
committed
Fix win32 CI setup; Set audio port group hints and vst3 categories
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 72341e7 commit 748e983

File tree

9 files changed

+102
-10
lines changed

9 files changed

+102
-10
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
run: |
2323
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
2424
sudo apt-get update -qq
25-
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
25+
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
26+
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
2627
- name: Set up dependencies
2728
run: |
2829
sudo dpkg --add-architecture arm64
@@ -60,7 +61,8 @@ jobs:
6061
run: |
6162
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
6263
sudo apt-get update -qq
63-
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
64+
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
65+
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
6466
- name: Set up dependencies
6567
run: |
6668
sudo dpkg --add-architecture armhf
@@ -98,7 +100,8 @@ jobs:
98100
run: |
99101
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
100102
sudo apt-get update -qq
101-
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
103+
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
104+
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
102105
- name: Set up dependencies
103106
run: |
104107
sudo dpkg --add-architecture i386

plugins/3BandEQ/DistrhoPlugin3BandEQ.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
33
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
4-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
4+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
55
*
66
* This program is free software; you can redistribute it and/or
77
* modify it under the terms of the GNU Lesser General Public

plugins/3BandEQ/DistrhoPlugin3BandEQ.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
33
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
4-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
4+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
55
*
66
* This program is free software; you can redistribute it and/or
77
* modify it under the terms of the GNU Lesser General Public

plugins/3BandEQ/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
3-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* This program is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public
@@ -28,5 +28,6 @@
2828
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
2929

3030
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:EQPlugin"
31+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"
3132

3233
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

plugins/3BandSplitter/DistrhoPlugin3BandSplitter.cpp

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,63 @@ DistrhoPlugin3BandSplitter::DistrhoPlugin3BandSplitter()
4040
// -----------------------------------------------------------------------
4141
// Init
4242

43+
void DistrhoPlugin3BandSplitter::initAudioPort(bool input, uint32_t index, AudioPort& port)
44+
{
45+
port.hints = 0x0;
46+
47+
if (input)
48+
{
49+
switch (index)
50+
{
51+
case 0:
52+
port.name = "Inpput Left";
53+
port.symbol = "in_left";
54+
break;
55+
case 1:
56+
port.name = "Input Right";
57+
port.symbol = "in_right";
58+
break;
59+
}
60+
port.groupId = kPortGroupStereo;
61+
}
62+
else
63+
{
64+
switch (index)
65+
{
66+
case 0:
67+
port.name = "Output Left (Low)";
68+
port.symbol = "in_left_low";
69+
port.groupId = kPortGroupLow;
70+
break;
71+
case 1:
72+
port.name = "Output Right (Low)";
73+
port.symbol = "in_right_low";
74+
port.groupId = kPortGroupLow;
75+
break;
76+
case 2:
77+
port.name = "Output Left (Mid)";
78+
port.symbol = "in_left_mid";
79+
port.groupId = kPortGroupMid;
80+
break;
81+
case 3:
82+
port.name = "Output Right (Mid)";
83+
port.symbol = "in_right_mid";
84+
port.groupId = kPortGroupMid;
85+
break;
86+
case 4:
87+
port.name = "Output Left (High)";
88+
port.symbol = "in_left_high";
89+
port.groupId = kPortGroupHigh;
90+
break;
91+
case 5:
92+
port.name = "Output Right (High)";
93+
port.symbol = "in_right_high";
94+
port.groupId = kPortGroupHigh;
95+
break;
96+
}
97+
}
98+
}
99+
43100
void DistrhoPlugin3BandSplitter::initParameter(uint32_t index, Parameter& parameter)
44101
{
45102
switch (index)
@@ -106,6 +163,25 @@ void DistrhoPlugin3BandSplitter::initParameter(uint32_t index, Parameter& parame
106163
}
107164
}
108165

166+
void DistrhoPlugin3BandSplitter::initPortGroup(uint32_t groupId, PortGroup& portGroup)
167+
{
168+
switch (groupId)
169+
{
170+
case kPortGroupLow:
171+
portGroup.name = "Low";
172+
portGroup.symbol = "low";
173+
break;
174+
case kPortGroupMid:
175+
portGroup.name = "Mid";
176+
portGroup.symbol = "mid";
177+
break;
178+
case kPortGroupHigh:
179+
portGroup.name = "High";
180+
portGroup.symbol = "high";
181+
break;
182+
}
183+
}
184+
109185
void DistrhoPlugin3BandSplitter::initProgramName(uint32_t index, String& programName)
110186
{
111187
if (index != 0)

plugins/3BandSplitter/DistrhoPlugin3BandSplitter.hpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
33
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
4-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
4+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
55
*
66
* This program is free software; you can redistribute it and/or
77
* modify it under the terms of the GNU Lesser General Public
@@ -38,6 +38,14 @@ class DistrhoPlugin3BandSplitter : public Plugin
3838
paramCount
3939
};
4040

41+
enum PortGroups
42+
{
43+
kPortGroupLow,
44+
kPortGroupMid,
45+
kPortGroupHigh,
46+
kPortGroupCount
47+
};
48+
4149
DistrhoPlugin3BandSplitter();
4250

4351
protected:
@@ -82,7 +90,9 @@ class DistrhoPlugin3BandSplitter : public Plugin
8290
// -------------------------------------------------------------------
8391
// Init
8492

93+
void initAudioPort(bool input, uint32_t index, AudioPort& port) override;
8594
void initParameter(uint32_t index, Parameter& parameter) override;
95+
void initPortGroup(uint32_t groupId, PortGroup& portGroup) override;
8696
void initProgramName(uint32_t index, String& programName) override;
8797

8898
// -------------------------------------------------------------------

plugins/3BandSplitter/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
3-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* This program is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public
@@ -28,5 +28,6 @@
2828
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
2929

3030
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:EQPlugin"
31+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"
3132

3233
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

plugins/PingPongPan/DistrhoPluginInfo.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO PingPongPan Plugin, based on PingPongPan by Michael Gruhn
3-
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
3+
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
44
*
55
* This program is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public
@@ -28,5 +28,6 @@
2828
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1
2929

3030
#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:SpatialPlugin"
31+
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"
3132

3233
#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

0 commit comments

Comments
 (0)