Skip to content

Commit a22b588

Browse files
committed
workaround bogaudio missing symbol
Signed-off-by: falkTX <[email protected]>
1 parent 74667a3 commit a22b588

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* DISTRHO Cardinal Plugin
3+
* Copyright (C) 2021-2024 Filipe Coelho <[email protected]>
4+
* SPDX-License-Identifier: GPL-3.0-or-later
5+
*/
6+
7+
#include "../BogaudioModules/src/bogaudio.hpp"
8+
9+
#include "../BogaudioModules/src/follower_base.hpp"
10+
#include "../BogaudioModules/src/VCF.hpp"
11+
12+
namespace bogaudio {
13+
14+
constexpr float FollowerBase::efGainMinDecibels;
15+
constexpr float FollowerBase::efGainMaxDecibels;
16+
constexpr float VCF::maxFrequency;
17+
constexpr float VCF::minFrequency;
18+
19+
}

plugins/Makefile

+4-14
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ BISET_CUSTOM = Blank ButtonTrigger Clock Tree TreeDisplay
595595
PLUGIN_FILES += $(filter-out BogaudioModules/src/bogaudio.cpp,$(wildcard BogaudioModules/src/*.cpp))
596596
PLUGIN_FILES += $(wildcard BogaudioModules/src/dsp/*.cpp)
597597
PLUGIN_FILES += $(wildcard BogaudioModules/src/dsp/filters/*.cpp)
598+
PLUGIN_FILES += BogaudioModules-helper/BogaudioModules-helper.cpp
598599

599600
MINIPLUGIN_FILES += BogaudioModules/src/AD.cpp
600601
MINIPLUGIN_FILES += BogaudioModules/src/LFO.cpp
@@ -631,10 +632,11 @@ MINIPLUGIN_FILES += BogaudioModules/src/dsp/filters/experiments.cpp
631632
MINIPLUGIN_FILES += BogaudioModules/src/dsp/filters/filter.cpp
632633
MINIPLUGIN_FILES += BogaudioModules/src/dsp/filters/multimode.cpp
633634
MINIPLUGIN_FILES += BogaudioModules/src/dsp/filters/resample.cpp
635+
MINIPLUGIN_FILES += BogaudioModules-helper/BogaudioModules-helper.cpp
634636

635637
# modules/types which are present in other plugins
636638
BOGAUDIO_CUSTOM = ADSR BlueNoiseGenerator LFO Noise VCA VCO VCF
637-
BOGAUDIO_CUSTOM_PER_FILE = ARQuantity AttackMenuItem ReleaseMenuItem
639+
BOGAUDIO_CUSTOM_PER_FILE = ARQuantity ARSlider AttackMenuItem ReleaseMenuItem
638640

639641
# --------------------------------------------------------------
640642
# ChowDSP
@@ -2267,19 +2269,7 @@ $(BUILD_DIR)/Biset/src/%.cpp.o: Biset/src/%.cpp
22672269
$(foreach m,$(BISET_CUSTOM),$(call custom_module_names,$(m),Biset)) \
22682270
-DpluginInstance=pluginInstance__Biset
22692271

2270-
$(BUILD_DIR)/BogaudioModules/src/follower_base.cpp.o: BogaudioModules/src/follower_base.cpp
2271-
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
2272-
@echo "Compiling $<"
2273-
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
2274-
$(foreach m,$(BOGAUDIO_CUSTOM),$(call custom_module_names,$(m),Bogaudio)) \
2275-
-DpluginInstance=pluginInstance__BogaudioModules \
2276-
-DefGainMaxDecibels=efGainMaxDecibelsDebug \
2277-
-DRACK_SIMD=1 \
2278-
-DSKIP_MINGW_FORMAT \
2279-
-IBogaudioModules/lib \
2280-
-IBogaudioModules/src/dsp
2281-
2282-
$(BUILD_DIR)/BogaudioModules/%.cpp.o: BogaudioModules/%.cpp
2272+
$(BUILD_DIR)/BogaudioModules%.cpp.o: BogaudioModules%.cpp
22832273
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
22842274
@echo "Compiling $<"
22852275
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \

src/custom/dep.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ void refreshTheme();
2727

2828
#include "nanovg.h"
2929

30-
// fix bogaudio build, another missing symbol
31-
#ifndef NDEBUG
32-
namespace bogaudio {
33-
struct FollowerBase {
34-
static float efGainMaxDecibelsDebug;
35-
};
36-
float FollowerBase::efGainMaxDecibelsDebug = 12.0f;
37-
}
38-
#endif
39-
4030
// Special nvgRGB for blank panels
4131
extern "C" {
4232
NVGcolor nvgRGBblank(const unsigned char r, const unsigned char g, const unsigned char b)

0 commit comments

Comments
 (0)