sfizz/plugins/vst/VstPluginFactory.cpp

42 lines
1.4 KiB
C++
Raw Normal View History

2020-03-05 11:16:47 +01:00
// SPDX-License-Identifier: BSD-2-Clause
// This code is part of the sfizz library and is licensed under a BSD 2-clause
// license. You should have receive a LICENSE.md file along with the code.
// If not, contact the sfizz maintainers at https://github.com/sfztools/sfizz
2021-04-08 04:43:53 +02:00
#include "SfizzVstIDs.h"
2020-03-05 11:16:47 +01:00
#include "VstPluginDefs.h"
#include "public.sdk/source/main/pluginfactory.h"
#include "pluginterfaces/vst/ivstcomponent.h"
#include "pluginterfaces/vst/ivstaudioprocessor.h"
#include "pluginterfaces/vst/ivsteditcontroller.h"
2021-04-08 04:43:53 +02:00
class SfizzVstProcessor;
class SfizzVstController;
2020-03-05 11:16:47 +01:00
BEGIN_FACTORY_DEF(VSTPLUGIN_VENDOR,
VSTPLUGIN_URL,
"mailto:" VSTPLUGIN_EMAIL)
2021-04-08 04:43:53 +02:00
DEF_CLASS2 (INLINE_UID_FROM_FUID(SfizzVstProcessor_cid),
2020-03-05 11:16:47 +01:00
PClassInfo::kManyInstances,
kVstAudioEffectClass,
VSTPLUGIN_NAME,
Vst::kDistributable,
Vst::PlugType::kInstrumentSynth,
VSTPLUGIN_VERSION,
kVstVersionString,
2021-04-08 04:43:53 +02:00
createInstance<SfizzVstProcessor>)
2020-03-05 11:16:47 +01:00
2021-04-08 04:43:53 +02:00
DEF_CLASS2 (INLINE_UID_FROM_FUID(SfizzVstController_cid),
2020-03-05 11:16:47 +01:00
PClassInfo::kManyInstances,
kVstComponentControllerClass,
VSTPLUGIN_NAME,
0, // not used here
"", // not used here
VSTPLUGIN_VERSION,
kVstVersionString,
2021-04-08 04:43:53 +02:00
createInstance<SfizzVstController>)
2020-03-05 11:16:47 +01:00
END_FACTORY