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