Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix win32 CI setup; Set audio port group hints and vst3 categories
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jul 22, 2022
1 parent 72341e7 commit 748e983
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 10 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -22,7 +22,8 @@ jobs:
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -qq
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
- name: Set up dependencies
run: |
sudo dpkg --add-architecture arm64
Expand Down Expand Up @@ -60,7 +61,8 @@ jobs:
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -qq
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
- name: Set up dependencies
run: |
sudo dpkg --add-architecture armhf
Expand Down Expand Up @@ -98,7 +100,8 @@ jobs:
run: |
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
sudo apt-get update -qq
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
- name: Set up dependencies
run: |
sudo dpkg --add-architecture i386
Expand Down
2 changes: 1 addition & 1 deletion dpf
2 changes: 1 addition & 1 deletion plugins/3BandEQ/DistrhoPlugin3BandEQ.cpp
@@ -1,7 +1,7 @@
/*
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion plugins/3BandEQ/DistrhoPlugin3BandEQ.hpp
@@ -1,7 +1,7 @@
/*
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down
3 changes: 2 additions & 1 deletion plugins/3BandEQ/DistrhoPluginInfo.h
@@ -1,6 +1,6 @@
/*
* DISTRHO 3BandEQ Plugin, based on 3BandEQ by Michael Gruhn
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -28,5 +28,6 @@
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:EQPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"

#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
76 changes: 76 additions & 0 deletions plugins/3BandSplitter/DistrhoPlugin3BandSplitter.cpp
Expand Up @@ -40,6 +40,63 @@ DistrhoPlugin3BandSplitter::DistrhoPlugin3BandSplitter()
// -----------------------------------------------------------------------
// Init

void DistrhoPlugin3BandSplitter::initAudioPort(bool input, uint32_t index, AudioPort& port)
{
port.hints = 0x0;

if (input)
{
switch (index)
{
case 0:
port.name = "Inpput Left";
port.symbol = "in_left";
break;
case 1:
port.name = "Input Right";
port.symbol = "in_right";
break;
}
port.groupId = kPortGroupStereo;
}
else
{
switch (index)
{
case 0:
port.name = "Output Left (Low)";
port.symbol = "in_left_low";
port.groupId = kPortGroupLow;
break;
case 1:
port.name = "Output Right (Low)";
port.symbol = "in_right_low";
port.groupId = kPortGroupLow;
break;
case 2:
port.name = "Output Left (Mid)";
port.symbol = "in_left_mid";
port.groupId = kPortGroupMid;
break;
case 3:
port.name = "Output Right (Mid)";
port.symbol = "in_right_mid";
port.groupId = kPortGroupMid;
break;
case 4:
port.name = "Output Left (High)";
port.symbol = "in_left_high";
port.groupId = kPortGroupHigh;
break;
case 5:
port.name = "Output Right (High)";
port.symbol = "in_right_high";
port.groupId = kPortGroupHigh;
break;
}
}
}

void DistrhoPlugin3BandSplitter::initParameter(uint32_t index, Parameter& parameter)
{
switch (index)
Expand Down Expand Up @@ -106,6 +163,25 @@ void DistrhoPlugin3BandSplitter::initParameter(uint32_t index, Parameter& parame
}
}

void DistrhoPlugin3BandSplitter::initPortGroup(uint32_t groupId, PortGroup& portGroup)
{
switch (groupId)
{
case kPortGroupLow:
portGroup.name = "Low";
portGroup.symbol = "low";
break;
case kPortGroupMid:
portGroup.name = "Mid";
portGroup.symbol = "mid";
break;
case kPortGroupHigh:
portGroup.name = "High";
portGroup.symbol = "high";
break;
}
}

void DistrhoPlugin3BandSplitter::initProgramName(uint32_t index, String& programName)
{
if (index != 0)
Expand Down
12 changes: 11 additions & 1 deletion plugins/3BandSplitter/DistrhoPlugin3BandSplitter.hpp
@@ -1,7 +1,7 @@
/*
* DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
* Copyright (C) 2007 Michael Gruhn <michael-gruhn@web.de>
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -38,6 +38,14 @@ class DistrhoPlugin3BandSplitter : public Plugin
paramCount
};

enum PortGroups
{
kPortGroupLow,
kPortGroupMid,
kPortGroupHigh,
kPortGroupCount
};

DistrhoPlugin3BandSplitter();

protected:
Expand Down Expand Up @@ -82,7 +90,9 @@ class DistrhoPlugin3BandSplitter : public Plugin
// -------------------------------------------------------------------
// Init

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

// -------------------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion plugins/3BandSplitter/DistrhoPluginInfo.h
@@ -1,6 +1,6 @@
/*
* DISTRHO 3BandSplitter Plugin, based on 3BandSplitter by Michael Gruhn
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -28,5 +28,6 @@
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:EQPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"

#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED
3 changes: 2 additions & 1 deletion plugins/PingPongPan/DistrhoPluginInfo.h
@@ -1,6 +1,6 @@
/*
* DISTRHO PingPongPan Plugin, based on PingPongPan by Michael Gruhn
* Copyright (C) 2012-2015 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2022 Filipe Coelho <falktx@falktx.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -28,5 +28,6 @@
#define DISTRHO_PLUGIN_WANT_PROGRAMS 1

#define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:SpatialPlugin"
#define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|EQ"

#endif // DISTRHO_PLUGIN_INFO_H_INCLUDED

0 comments on commit 748e983

Please sign in to comment.