From 1591b84f1a1f9638c5d5db6c91dd1edf3f73c85f Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 7 May 2023 14:41:52 +0200 Subject: [PATCH] Add specialized water static lib content for OBS Signed-off-by: falkTX --- source/backend/plugin/CarlaPluginBridge.cpp | 2 +- source/modules/water/water.obs.cpp | 76 +++++++++++++++++++++ source/modules/water/water.obs.mm | 19 ++++++ 3 files changed, 96 insertions(+), 1 deletion(-) create mode 100644 source/modules/water/water.obs.cpp create mode 100644 source/modules/water/water.obs.mm diff --git a/source/backend/plugin/CarlaPluginBridge.cpp b/source/backend/plugin/CarlaPluginBridge.cpp index 699a1ef37..1299c60fa 100644 --- a/source/backend/plugin/CarlaPluginBridge.cpp +++ b/source/backend/plugin/CarlaPluginBridge.cpp @@ -2336,7 +2336,7 @@ public: } break; case kPluginBridgeNonRtServerParameterData1: { - // uint/index, int/rindex, uint/type, uint/hints, int/cc + // uint/index, int/rindex, uint/type, uint/hints, short/cc const uint32_t index = fShmNonRtServerControl.readUInt(); const int32_t rindex = fShmNonRtServerControl.readInt(); const uint32_t type = fShmNonRtServerControl.readUInt(); diff --git a/source/modules/water/water.obs.cpp b/source/modules/water/water.obs.cpp new file mode 100644 index 000000000..c9e26ea44 --- /dev/null +++ b/source/modules/water/water.obs.cpp @@ -0,0 +1,76 @@ +/* + * Cross-platform C++ library for Carla, based on Juce v4 + * Copyright (C) 2015 ROLI Ltd. + * Copyright (C) 2017-2020 Filipe Coelho + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * For a full copy of the GNU General Public License see the doc/GPL.txt file. + */ + +#include "common.hpp" + +//============================================================================== +namespace water +{ + +#ifdef CARLA_OS_WIN +static HINSTANCE currentModuleHandle = nullptr; + +HINSTANCE getCurrentModuleInstanceHandle() noexcept +{ + if (currentModuleHandle == nullptr) + currentModuleHandle = GetModuleHandleA (nullptr); + + return currentModuleHandle; +} +#endif + +} + +#include "files/DirectoryIterator.cpp" +#include "files/File.cpp" +#include "files/FileInputStream.cpp" +#include "files/FileOutputStream.cpp" +#include "files/TemporaryFile.cpp" + +#include "maths/Random.cpp" + +#include "memory/MemoryBlock.cpp" + +#include "midi/MidiBuffer.cpp" +// #include "midi/MidiFile.cpp" +#include "midi/MidiMessage.cpp" +// #include "midi/MidiMessageSequence.cpp" + +#include "misc/Result.cpp" +#include "misc/Time.cpp" + +#include "processors/AudioProcessor.cpp" +#include "processors/AudioProcessorGraph.cpp" + +#include "streams/FileInputSource.cpp" +#include "streams/InputStream.cpp" +// #include "streams/MemoryInputStream.cpp" +#include "streams/MemoryOutputStream.cpp" +#include "streams/OutputStream.cpp" + +// #include "synthesisers/Synthesiser.cpp" +// +#include "text/CharacterFunctions.cpp" +#include "text/Identifier.cpp" +#include "text/StringArray.cpp" +#include "text/String.cpp" + +#include "threads/ChildProcess.cpp" + +#include "xml/XmlDocument.cpp" +#include "xml/XmlElement.cpp" diff --git a/source/modules/water/water.obs.mm b/source/modules/water/water.obs.mm new file mode 100644 index 000000000..fcb3bfe96 --- /dev/null +++ b/source/modules/water/water.obs.mm @@ -0,0 +1,19 @@ +/* + * Cross-platform C++ library for Carla, based on Juce v4 + * Copyright (C) 2015 ROLI Ltd. + * Copyright (C) 2017-2023 Filipe Coelho + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * For a full copy of the GNU General Public License see the doc/GPL.txt file. + */ + +#include "water.obs.cpp"