Skip to content

Commit c2ee908

Browse files
committed
Fix win32 CI setup; Set audio port group hint; Sample rate changes
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 2b247cd commit c2ee908

6 files changed

Lines changed: 35 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 4 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
@@ -193,7 +196,8 @@ jobs:
193196
run: |
194197
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
195198
sudo apt-get update -qq
196-
sudo apt-get install -yqq --allow-downgrades libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
199+
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
200+
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
197201
- name: Set up dependencies
198202
run: |
199203
sudo dpkg --add-architecture i386
@@ -226,6 +230,12 @@ jobs:
226230
- uses: actions/checkout@v2
227231
with:
228232
submodules: recursive
233+
- name: Fix GitHub's mess
234+
run: |
235+
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
236+
sudo apt-get update -qq
237+
sudo apt-get install -yqq --allow-downgrades libgd3/focal libpcre2-8-0/focal libpcre2-16-0/focal libpcre2-32-0/focal libpcre2-posix2/focal
238+
sudo apt-get purge -yqq libmono* moby* mono* php* libgdiplus libpcre2-posix3 libzip4
229239
- name: Set up dependencies
230240
run: |
231241
sudo apt-get update -qq

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ plugins:
1616
ifneq ($(CROSS_COMPILING),true)
1717
gen: plugins dpf/utils/lv2_ttl_generator
1818
@$(CURDIR)/dpf/utils/generate-ttl.sh
19-
ifeq ($(MACOS),true)
20-
@$(CURDIR)/dpf/utils/generate-vst-bundles.sh
21-
endif
2219

2320
dpf/utils/lv2_ttl_generator:
2421
$(MAKE) -C dpf/utils/lv2-ttl-generator

dpf

Submodule dpf updated 133 files

plugins/Kars/DistrhoPluginInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO Kars Plugin, based on karplong by Chris Cannam.
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

plugins/Kars/DistrhoPluginKars.cpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO Kars Plugin, based on karplong by Chris Cannam.
3-
* Copyright (C) 2015-2019 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 @@ DistrhoPluginKars::DistrhoPluginKars()
3939
// -----------------------------------------------------------------------
4040
// Init
4141

42+
void DistrhoPluginKars::initAudioPort(bool input, uint32_t index, AudioPort& port)
43+
{
44+
port.groupId = kPortGroupMono;
45+
46+
Plugin::initAudioPort(input, index, port);
47+
}
48+
4249
void DistrhoPluginKars::initParameter(uint32_t index, Parameter& parameter)
4350
{
4451
switch (index)
@@ -167,6 +174,14 @@ void DistrhoPluginKars::run(const float**, float** outputs, uint32_t frames, con
167174
}
168175
}
169176

177+
void DistrhoPluginKars::sampleRateChanged(double newSampleRate)
178+
{
179+
fSampleRate = getSampleRate();
180+
181+
for (int i=kMaxNotes; --i >= 0;)
182+
fNotes[i].setSampleRate(newSampleRate);
183+
}
184+
170185
void DistrhoPluginKars::addSamples(float* out, int voice, uint32_t frames)
171186
{
172187
const uint32_t start = fBlockStart;

plugins/Kars/DistrhoPluginKars.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* DISTRHO Kars Plugin, based on karplong by Chris Cannam.
3-
* Copyright (C) 2015-2019 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
@@ -81,6 +81,7 @@ class DistrhoPluginKars : public Plugin
8181
// -------------------------------------------------------------------
8282
// Init
8383

84+
void initAudioPort(bool input, uint32_t index, AudioPort& port) override;
8485
void initParameter(uint32_t index, Parameter& parameter) override;
8586

8687
// -------------------------------------------------------------------
@@ -94,6 +95,7 @@ class DistrhoPluginKars : public Plugin
9495

9596
void activate() override;
9697
void run(const float**, float** outputs, uint32_t frames, const MidiEvent* midiEvents, uint32_t midiEventCount) override;
98+
void sampleRateChanged(double newSampleRate) override;
9799

98100
// -------------------------------------------------------------------
99101

0 commit comments

Comments
 (0)