VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
vae_effects_factory.hpp
Go to the documentation of this file.
1#ifndef _VAE_EFFECTS_FACTORY
2#define _VAE_EFFECTS_FACTORY
3
5
6namespace vae { namespace core { namespace effect {
7
9 public:
10 static EffectBase* create(IdString& id) {
11 for (auto& i : EffectsList::instance().mEffects) {
12 if (i.name == nullptr) { continue; }
13 if (id == i.name) {
14 return i.construtor();
15 }
16 }
17 return nullptr;
18 }
19 };
20
21} } } // vae::core::faust
22
23#endif // _VAE_EFFECTS_FACTORY
static EffectBase * create(IdString &id)
static EffectsList & instance()
Contains Typedefinitions and basic structures use by the public API and internally.
Definition: vae.hpp:31