score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
Loader.hpp
1
#pragma once
2
// Taken and refactored from ofxVstHostPluginLoader.h
3
// https://github.com/Meach/ofxVstHost
4
5
#include <Vst/vst-compat.hpp>
6
7
#include <string>
8
9
namespace
vst
10
{
11
using
PluginEntryProc = AEffect* (*)(audioMasterCallback audioMaster);
12
13
struct
Module
14
{
15
std::string path;
16
void
*
module
{};
17
18
Module
(std::string fileName);
19
~Module
();
20
PluginEntryProc getMain();
21
22
int
use_count{};
23
};
24
25
#if defined(__APPLE__)
26
static
const
constexpr
auto
default_filter =
"*.vst *.dylib *.component"
;
27
#elif defined(__linux__)
28
static
const
constexpr
auto
default_filter =
"*.so"
;
29
#elif defined(_WIN32)
30
static
const
constexpr
auto
default_filter =
"*.dll"
;
31
#else
32
static
const
constexpr
auto
default_path =
""
;
33
static
const
constexpr
auto
default_filter =
""
;
34
#endif
35
}
vst::Module
Definition
Loader.hpp:14