Skip to content

Commit 72982ed

Browse files
committed
Update dpf and plugins
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 7740bab commit 72982ed

17 files changed

+261
-199
lines changed

dpf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Bug reports happen on the [DPF github project](https://github.com/DISTRHO/DPF/is
3131

3232
Online documentation is available at [https://distrho.github.io/DPF/](https://distrho.github.io/DPF/).
3333

34-
Online help and discussion about DPF happens in the [kx.studio chat, DPF room](https://chat.kx.studio/channel/dpf).
34+
Online help and discussion about DPF happens in the [DPF github discussions](https://github.com/DISTRHO/DPF/discussions).
3535

3636

3737
## List of plugins made with DPF:

dpf/cmake/DPF-plugin.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,8 @@ function(dpf__determine_vst3_package_architecture OUTPUT_VARIABLE)
493493
else()
494494
set(vst3_package_arch "i386")
495495
endif()
496-
elseif(vst3_system_arch MATCHES "^(armv[3-8][a-z]*|ppc(64)?(le)?)$")
496+
elseif(vst3_system_arch MATCHES "^(armv[3-9][a-z]*|aarch64|loongarch64|ppc(64)?(le)?)$")
497497
set(vst3_package_arch "${vst3_system_arch}")
498-
elseif(vst3_system_arch MATCHES "^(aarch64)$")
499-
set(vst3_package_arch "aarch64")
500498
else()
501499
message(FATAL_ERROR "We don't know this architecture for VST3: ${vst3_system_arch}.")
502500
endif()

dpf/distrho/DistrhoInfo.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,12 @@ START_NAMESPACE_DISTRHO
553553
*/
554554
#define DISTRHO_PLUGIN_WANT_LATENCY 1
555555

556+
/**
557+
Whether the plugin wants MPE for MIDI input and/or output.
558+
@note Only AU and CLAP formats implement this at the moment
559+
*/
560+
#define DISTRHO_PLUGIN_WANT_MIDI_AS_MPE 0
561+
556562
/**
557563
Whether the plugin wants MIDI input.@n
558564
This is automatically enabled if @ref DISTRHO_PLUGIN_IS_SYNTH is true.

dpf/distrho/extra/Base64.hpp

Lines changed: 5 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <vector>
2323

24-
// -----------------------------------------------------------------------
24+
// --------------------------------------------------------------------------------------------------------------------
2525
// base64 stuff, based on http://www.adp-gmbh.ch/cpp/common/base64.html
2626

2727
/*
@@ -48,7 +48,7 @@
4848
René Nyffenegger rene.nyffenegger@adp-gmbh.ch
4949
*/
5050

51-
// -----------------------------------------------------------------------
51+
// --------------------------------------------------------------------------------------------------------------------
5252
// Helpers
5353

5454
#ifndef DOXYGEN
@@ -77,82 +77,13 @@ uint8_t findBase64CharIndex(const char c)
7777
static constexpr inline
7878
bool isBase64Char(const char c)
7979
{
80-
switch (c)
81-
{
82-
case 'A':
83-
case 'B':
84-
case 'C':
85-
case 'D':
86-
case 'E':
87-
case 'F':
88-
case 'G':
89-
case 'H':
90-
case 'I':
91-
case 'J':
92-
case 'K':
93-
case 'L':
94-
case 'M':
95-
case 'N':
96-
case 'O':
97-
case 'P':
98-
case 'Q':
99-
case 'R':
100-
case 'S':
101-
case 'T':
102-
case 'U':
103-
case 'V':
104-
case 'W':
105-
case 'X':
106-
case 'Y':
107-
case 'Z':
108-
case 'a':
109-
case 'b':
110-
case 'c':
111-
case 'd':
112-
case 'e':
113-
case 'f':
114-
case 'g':
115-
case 'h':
116-
case 'i':
117-
case 'j':
118-
case 'k':
119-
case 'l':
120-
case 'm':
121-
case 'n':
122-
case 'o':
123-
case 'p':
124-
case 'q':
125-
case 'r':
126-
case 's':
127-
case 't':
128-
case 'u':
129-
case 'v':
130-
case 'w':
131-
case 'x':
132-
case 'y':
133-
case 'z':
134-
case '0':
135-
case '1':
136-
case '2':
137-
case '3':
138-
case '4':
139-
case '5':
140-
case '6':
141-
case '7':
142-
case '8':
143-
case '9':
144-
case '+':
145-
case '/':
146-
return true;
147-
default:
148-
return false;
149-
}
80+
return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || c == '+' || c == '/';
15081
}
15182

15283
} // namespace DistrhoBase64Helpers
15384
#endif
15485

155-
// -----------------------------------------------------------------------
86+
// --------------------------------------------------------------------------------------------------------------------
15687

15788
static inline
15889
std::vector<uint8_t> d_getChunkFromBase64String(const char* const base64string)
@@ -213,6 +144,6 @@ std::vector<uint8_t> d_getChunkFromBase64String(const char* const base64string)
213144
return ret;
214145
}
215146

216-
// -----------------------------------------------------------------------
147+
// --------------------------------------------------------------------------------------------------------------------
217148

218149
#endif // DISTRHO_BASE64_HPP_INCLUDED

dpf/distrho/extra/ValueSmoother.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,20 +180,20 @@ class LinearValueSmoother {
180180
inline float peek() const noexcept
181181
{
182182
const float dy = target - mem;
183-
return mem + std::copysign(std::fmin(std::abs(dy), std::abs(step)), dy);
183+
return mem + std::copysign(std::fmin(std::abs(dy), step), dy);
184184
}
185185

186186
inline float next() noexcept
187187
{
188188
const float y0 = mem;
189189
const float dy = target - y0;
190-
return (mem = y0 + std::copysign(std::fmin(std::abs(dy), std::abs(step)), dy));
190+
return (mem = y0 + std::copysign(std::fmin(std::abs(dy), step), dy));
191191
}
192192

193193
private:
194194
void updateStep() noexcept
195195
{
196-
step = (target - mem) / (tau * sampleRate);
196+
step = std::abs(target - mem) / (tau * sampleRate);
197197
}
198198
};
199199

dpf/distrho/extra/WebViewImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
@implementation WEB_VIEW_DELEGATE_CLASS_NAME {
108108
@public
109-
WebViewMessageCallback callback;
109+
DISTRHO_NAMESPACE::WebViewMessageCallback callback;
110110
void* callbackPtr;
111111
bool loaded;
112112
}

0 commit comments

Comments
 (0)