gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

plugin.h (979B)


      1 // ReSharper disable CppNonInlineFunctionDefinitionInHeaderFile
      2 #pragma once
      3 
      4 #include "export.h"
      5 
      6 #include "bridgeLib/commands.h"
      7 
      8 namespace synthLib
      9 {
     10 	class Device;
     11 }
     12 
     13 namespace bridgeClient
     14 {
     15 	void initPluginDesc(bridgeLib::PluginDesc& _desc)
     16 	{
     17 		_desc.pluginName = PluginName;
     18 		_desc.pluginVersion = PluginVersionMajor * 10000 + PluginVersionMinor * 100 + PluginVersionPatch;
     19 		_desc.plugin4CC = Plugin4CC;
     20 	}
     21 
     22 	void getBridgeDeviceDesc(bridgeLib::PluginDesc& _desc)
     23 	{
     24 		initPluginDesc(_desc);
     25 	}
     26 }
     27 
     28 synthLib::Device* createBridgeDevice(const synthLib::DeviceCreateParams& _params);
     29 
     30 extern "C"
     31 {
     32 	BRIDGE_CLIENT_API synthLib::Device* bridgeDeviceCreate(const synthLib::DeviceCreateParams& _params)
     33 	{
     34 		return createBridgeDevice(_params);
     35 	}
     36 
     37 	BRIDGE_CLIENT_API void bridgeDeviceDestroy(const synthLib::Device* _device)
     38 	{
     39 		delete _device;
     40 	}
     41 
     42 	BRIDGE_CLIENT_API void bridgeDeviceGetDesc(bridgeLib::PluginDesc& _desc)
     43 	{
     44 		bridgeClient::getBridgeDeviceDesc(_desc);
     45 	}
     46 }