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 <QString>
8
9
#include <string>
10
11
namespace
vst
12
{
13
using
PluginEntryProc = AEffect* (*)(audioMasterCallback audioMaster);
14
15
struct
Module
16
{
17
std::string path;
18
void
*
module
{};
19
20
Module
(std::string fileName);
21
~Module
();
22
PluginEntryProc getMain();
23
24
int
use_count{};
25
};
26
27
#if defined(__APPLE__)
28
static
const
constexpr
auto
default_filter =
"*.vst *.dylib *.component"
;
29
#elif defined(__linux__)
30
static
const
constexpr
auto
default_filter =
"*.so"
;
31
#elif defined(_WIN32)
32
static
const
constexpr
auto
default_filter =
"*.dll"
;
33
#else
34
static
const
constexpr
auto
default_path =
""
;
35
static
const
constexpr
auto
default_filter =
""
;
36
#endif
37
}
vst::Module
Definition
Loader.hpp:16