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
9namespace vst
10{
11using PluginEntryProc = AEffect* (*)(audioMasterCallback audioMaster);
12
13struct 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__)
26static const constexpr auto default_filter = "*.vst *.dylib *.component";
27#elif defined(__linux__)
28static const constexpr auto default_filter = "*.so";
29#elif defined(_WIN32)
30static const constexpr auto default_filter = "*.dll";
31#else
32static const constexpr auto default_path = "";
33static const constexpr auto default_filter = "";
34#endif
35}
Definition Loader.hpp:14