Skip to content

Commit 482e3e3

Browse files
committed
workaround bogaudio missing symbol
Signed-off-by: falkTX <[email protected]>
1 parent a1cab84 commit 482e3e3

File tree

3 files changed

+22
-24
lines changed

3 files changed

+22
-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

+3-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
@@ -634,7 +635,7 @@ MINIPLUGIN_FILES += BogaudioModules/src/dsp/filters/resample.cpp
634635

635636
# modules/types which are present in other plugins
636637
BOGAUDIO_CUSTOM = ADSR BlueNoiseGenerator LFO Noise VCA VCO VCF
637-
BOGAUDIO_CUSTOM_PER_FILE = ARQuantity AttackMenuItem ReleaseMenuItem
638+
BOGAUDIO_CUSTOM_PER_FILE = ARQuantity ARSlider AttackMenuItem ReleaseMenuItem
638639

639640
# --------------------------------------------------------------
640641
# ChowDSP
@@ -2265,19 +2266,7 @@ $(BUILD_DIR)/Biset/src/%.cpp.o: Biset/src/%.cpp
22652266
$(foreach m,$(BISET_CUSTOM),$(call custom_module_names,$(m),Biset)) \
22662267
-DpluginInstance=pluginInstance__Biset
22672268

2268-
$(BUILD_DIR)/BogaudioModules/src/follower_base.cpp.o: BogaudioModules/src/follower_base.cpp
2269-
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
2270-
@echo "Compiling $<"
2271-
$(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@ \
2272-
$(foreach m,$(BOGAUDIO_CUSTOM),$(call custom_module_names,$(m),Bogaudio)) \
2273-
-DpluginInstance=pluginInstance__BogaudioModules \
2274-
-DefGainMaxDecibels=efGainMaxDecibelsDebug \
2275-
-DRACK_SIMD=1 \
2276-
-DSKIP_MINGW_FORMAT \
2277-
-IBogaudioModules/lib \
2278-
-IBogaudioModules/src/dsp
2279-
2280-
$(BUILD_DIR)/BogaudioModules/%.cpp.o: BogaudioModules/%.cpp
2269+
$(BUILD_DIR)/BogaudioModules%.cpp.o: BogaudioModules%.cpp
22812270
-@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)"
22822271
@echo "Compiling $<"
22832272
$(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)