Commit e544a7b3 authored by Benjamin Heisch's avatar Benjamin Heisch
Browse files

Changed Name from XPlug to APAL because XPlug... sounds kind of strange and...

Changed Name from XPlug to APAL because XPlug... sounds kind of strange and APAL has a better fitting meaning.
parent 3e50f1ae
Pipeline #19424 passed with stages
in 6 minutes and 9 seconds
if(XPLUG_BUILD_TESTS)
if(APAL_BUILD_TESTS)
if(VST2_FOUND)
target_include_directories(XValidate SYSTEM PRIVATE ${VST2_INCLUDE_DIRS})
target_compile_definitions(XValidate PRIVATE USE_VST2_SDK)
......@@ -9,4 +9,4 @@ if(XPLUG_BUILD_TESTS)
target_include_directories(XValidate SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/deps/ ${CMAKE_CURRENT_LIST_DIR}/..)
target_sources(regression_tests PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST2RegressionTest.cpp)
target_include_directories(regression_tests SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/deps/ ${CMAKE_CURRENT_LIST_DIR}/..)
endif(XPLUG_BUILD_TESTS)
\ No newline at end of file
endif(APAL_BUILD_TESTS)
\ No newline at end of file
......@@ -21,7 +21,7 @@ private:
public:
// reference to the plugin library
XPlug::library_t pluginLib = nullptr;
APAL::library_t pluginLib = nullptr;
// the library represented as AEffect.
AEffect* effect = nullptr;
......@@ -50,9 +50,9 @@ public:
}
aMasterCallback = cb;
pluginLib = XPlug::LoadLib(pluginPath.c_str());
pluginLib = APAL::LoadLib(pluginPath.c_str());
VSTPluginMain_fnc =
XPlug::LoadFunc<VSTPluginMain>(pluginLib, "VSTPluginMain");
APAL::LoadFunc<VSTPluginMain>(pluginLib, "VSTPluginMain");
}
/**
* @brief Calls the internal Free Method and unloads the library. So
......@@ -61,7 +61,7 @@ public:
inline ~VST2Module()
{
this->free();
XPlug::UnloadLib(this->pluginLib);
APAL::UnloadLib(this->pluginLib);
}
/**
......
#include "IFormatTestSuite.hpp"
#include "VST2Module.hpp"
using namespace XPlug;
using namespace APAL;
typedef AEffect* (*VSTPluginMain)(audioMasterCallback);
/**
......
......@@ -10,7 +10,7 @@
#include <cstring>
#include <interfaces/IPlugin.hpp>
#include <tools/PortHandling.hpp>
using namespace XPlug;
using namespace APAL;
/**
* @brief Struct for use in the vst2 implementation. This struct is stored in
......
# Enable XPLUG_VST3_SUPPORT if present, othertwhise not.
# if its forced to used by specify XPLUG_VST3_SUPPORT to ON, VST3 package is required.
# Enable APAL_VST3_SUPPORT if present, othertwhise not.
# if its forced to used by specify APAL_VST3_SUPPORT to ON, VST3 package is required.
find_package(VST3)
option(XPLUG_VST3_SUPPORT "Support vor VST3" ${VST3_FOUND})
option(APAL_VST3_SUPPORT "Support vor VST3" ${VST3_FOUND})
if(XPLUG_VST3_SUPPORT)
if(APAL_VST3_SUPPORT)
include(symbol_export)
#if VST3 Support is build, Required is true.
find_package(VST3 REQUIRED)
add_library(vst3 vst3.cpp Component.cpp VST3AudioProcessorImpl.cpp VST3EditControllerImpl.cpp)
set_target_properties(vst3 PROPERTIES POSITION_INDEPENDENT_CODE True)
target_link_libraries(vst3 XPlug ${VST3_LIBRARIES})
target_link_libraries(vst3 APAL ${VST3_LIBRARIES})
target_include_directories(vst3 SYSTEM PRIVATE ${VST3_INCLUDE_DIRS} )
target_compile_features(vst3 PUBLIC cxx_std_11)
......@@ -24,6 +24,6 @@ if(XPLUG_VST3_SUPPORT)
MESSAGE()
endif(WIN32)
install(TARGETS vst3 EXPORT XPlugExport DESTINATION lib)
install(TARGETS vst3 EXPORT APALExport DESTINATION lib)
add_subdirectory(tests)
endif(XPLUG_VST3_SUPPORT)
endif(APAL_VST3_SUPPORT)
......@@ -40,14 +40,14 @@ Component::release()
tresult PLUGIN_API
Component::initialize(FUnknown*)
{
XPlug::GlobalData().getPlugin(plugIndex)->init();
APAL::GlobalData().getPlugin(plugIndex)->init();
return kResultOk;
}
tresult PLUGIN_API
Component::terminate()
{
XPlug::GlobalData().getPlugin(plugIndex)->deinit();
APAL::GlobalData().getPlugin(plugIndex)->deinit();
return kResultOk;
}
......@@ -70,15 +70,15 @@ int32 PLUGIN_API
Component::getBusCount(MediaType type, BusDirection dir)
{
if (type == kAudio) {
return static_cast<int32>(XPlug::getNumberOfPorts<XPlug::IAudioPort>(
XPlug::GlobalData().getPlugin(plugIndex).get(),
dir == kInput ? XPlug::PortDirection::Input
: XPlug::PortDirection::Output));
return static_cast<int32>(APAL::getNumberOfPorts<APAL::IAudioPort>(
APAL::GlobalData().getPlugin(plugIndex).get(),
dir == kInput ? APAL::PortDirection::Input
: APAL::PortDirection::Output));
} else if (type == kEvent) {
return static_cast<int32>(XPlug::getNumberOfPorts<XPlug::IMidiPort>(
XPlug::GlobalData().getPlugin(plugIndex).get(),
dir == kInput ? XPlug::PortDirection::Input
: XPlug::PortDirection::Output));
return static_cast<int32>(APAL::getNumberOfPorts<APAL::IMidiPort>(
APAL::GlobalData().getPlugin(plugIndex).get(),
dir == kInput ? APAL::PortDirection::Input
: APAL::PortDirection::Output));
} else {
return 0;
}
......@@ -91,23 +91,23 @@ Component::getBusInfo(MediaType type,
int32 index,
BusInfo& bus)
{
XPlug::IPort* p = nullptr;
APAL::IPort* p = nullptr;
if (index < 0 || index > getBusCount(type, dir))
return kInvalidArgument;
if (type == kAudio) {
auto ap = XPlug::getPortAt<XPlug::IAudioPort>(
XPlug::GlobalData().getPlugin(plugIndex).get(),
auto ap = APAL::getPortAt<APAL::IAudioPort>(
APAL::GlobalData().getPlugin(plugIndex).get(),
static_cast<size_t>(index),
dir == kInput ? XPlug::PortDirection::Input
: XPlug::PortDirection::Output);
dir == kInput ? APAL::PortDirection::Input
: APAL::PortDirection::Output);
p = ap;
bus.channelCount = static_cast<int32>(ap->size());
} else if (type == kEvent) {
auto mp = XPlug::getPortAt<XPlug::IMidiPort>(
XPlug::GlobalData().getPlugin(plugIndex).get(),
auto mp = APAL::getPortAt<APAL::IMidiPort>(
APAL::GlobalData().getPlugin(plugIndex).get(),
static_cast<size_t>(index),
dir == kInput ? XPlug::PortDirection::Input
: XPlug::PortDirection::Output);
dir == kInput ? APAL::PortDirection::Input
: APAL::PortDirection::Output);
p = mp;
bus.channelCount = 16;
} else {
......
......@@ -9,7 +9,7 @@
#include <tools/PortHandling.hpp>
#include <cmath>
using namespace XPlug;
using namespace APAL;
VST3AudioProccessorImpl::VST3AudioProccessorImpl()
{
......
if(XPLUG_BUILD_TESTS)
if(APAL_BUILD_TESTS)
target_include_directories(XValidate SYSTEM PUBLIC ${VST3_INCLUDE_DIRS})
target_sources(XValidate PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST3TestSuite.cpp)
cmake_policy(SET CMP0079 NEW)
......@@ -9,4 +9,4 @@ if(XPLUG_BUILD_TESTS)
target_sources(regression_tests PUBLIC ${CMAKE_CURRENT_LIST_DIR}/VST3RegressionTest.cpp)
#cmake_policy(SET CMP0079 NEW)
target_link_libraries(regression_tests PUBLIC ${VST3_LIBRARIES})
endif(XPLUG_BUILD_TESTS)
\ No newline at end of file
endif(APAL_BUILD_TESTS)
\ No newline at end of file
......@@ -181,7 +181,7 @@ class VST3Module
private:
std::string lastError = "";
std::string lastWarning = "";
XPlug::library_t pluginLibrary = nullptr; // The pluginlibrary
APAL::library_t pluginLibrary = nullptr; // The pluginlibrary
GetFactoryProc plugLoadFunction = nullptr; // FactoryLoad Function
void* initfnc = nullptr; // functionpointer to init function
void* exitfnc = nullptr; // functionpointer to init function
......@@ -212,7 +212,7 @@ public:
*/
inline explicit VST3Module(std::string pluginPath)
{
using namespace XPlug;
using namespace APAL;
using namespace Steinberg;
using namespace Vst;
GetError();
......@@ -275,7 +275,7 @@ public:
{
if (this->runExitFncLampda != nullptr)
this->runExitFncLampda();
XPlug::UnloadLib(this->pluginLibrary);
APAL::UnloadLib(this->pluginLibrary);
}
/**
......
......@@ -7,7 +7,7 @@
#include <vst/ivsteditcontroller.h>
#include <vst/ivstevents.h>
#include <vst/ivstprocesscontext.h>
using namespace XPlug;
using namespace APAL;
using namespace Steinberg;
using namespace Vst;
/**
......
......@@ -74,7 +74,7 @@ extern "C"
IPluginFactory* PLUGIN_API GetPluginFactory()
{
if (!gPluginFactory) {
auto plug = XPlug::GlobalData().getPlugin(0);
auto plug = APAL::GlobalData().getPlugin(0);
static PFactoryInfo factoryInfo = {
plug->getInfoComponent()->getCreatorName().data(),
plug->getInfoComponent()->getCreatorURL().data(),
......
# Add all includefiles together and set them in Parentscope
SET(XPLUG_INCLUDE_FILES ${XPLUG_INCLUDE_FILES} ${PLUGIN_HEADER}
SET(APAL_INCLUDE_FILES ${APAL_INCLUDE_FILES} ${PLUGIN_HEADER}
${CMAKE_CURRENT_LIST_DIR}/GlobalData.hpp
${CMAKE_CURRENT_LIST_DIR}/Types.hpp
......
#ifndef GLOBAL_DATA_HPP
#define GLOBAL_DATA_HPP
#include "XPlug_version.h"
#include "APAL_version.h"
#include <memory>
#include <string>
#include <vector>
namespace XPlug {
namespace APAL {
class IPlugin;
// class PluginController;
......@@ -54,16 +54,16 @@ GlobalData();
}
typedef XPlug::GlobalDataType& (*globalDataFncPtr)();
typedef APAL::GlobalDataType& (*globalDataFncPtr)();
extern "C"
{
/**
* @brief Just a simple Function, which makes the Version callable. Should
* also be packed in the Plugin, maybe its usefull in the future.
* @return Version of the current XPLUG version.
* @return Version of the current APAL version.
*/
VERSION XPlugGetVersion();
VERSION APALGetVersion();
}
#endif //! GLOBAL_DATA_HPP
......@@ -15,7 +15,7 @@ using namespace sv_lite;
}
#endif
namespace XPlug {
namespace APAL {
/**
* @brief NotImplementedException, to be used when something in this project is
* not implemented yet. Currently not used that much, but in the opensource
......
......@@ -9,7 +9,7 @@
#include <interfaces/IFeatureComponent.hpp>
#include <string>
#include <vector>
namespace XPlug {
namespace APAL {
class IPortComponent;
/**
* @brief Exception, which is called, when a feature is not supported
......
#ifndef INFO_COMPONENTS_HPP
#define INFO_COMPONENTS_HPP
#include <interfaces/IInfoComponent.hpp>
namespace XPlug {
namespace APAL {
/**
* @brief currently only implementation of the IInfoComponent. Stores infos in
......
......@@ -5,7 +5,7 @@
#include "PortComponents.hpp"
#include <interfaces/IPlugin.hpp>
#include <memory>
namespace XPlug {
namespace APAL {
/**
* @brief Modular Plugin, which holds all required components. The
* componenttypes must be specified. If the default constructor is used, every
......
......@@ -2,7 +2,7 @@
#define SIMPLE_PORT_COMPONENT_HPP
#include <interfaces/Ports/IPortComponent.hpp>
#include <memory>
namespace XPlug {
namespace APAL {
/**
* @brief Simple implementation from PortComponent. Ports are stored in 2
* vectors. The Order is ordered by input and output ports, where the input
......
......@@ -7,7 +7,7 @@
#include <queue>
#include <tools/PortHandling.hpp>
/*************************Some Port definitions*************************/
namespace XPlug {
namespace APAL {
/**
* @brief Standard implementation of a channel. Pretty straight forward.
......
#ifndef IFEATURE_COMPONENT_HPP
#define IFEATURE_COMPONENT_HPP
#include <string>
namespace XPlug {
namespace APAL {
/**
* @brief Features which
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment