mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Allow loading VST3 modules
Doesn't actually work yet or do anything, but it compiles and it runs.
This commit is contained in:
@@ -17,4 +17,20 @@
|
||||
#include "vst3.h"
|
||||
|
||||
// TODO: Do something with this, I just wanted to get the build working
|
||||
// TODO: Check if this can load both regular Unix style paths with Wine. Oh and
|
||||
// check if it works at all.
|
||||
// TODO: Check if <filesystem> now works with Winelib, or replace with Boost
|
||||
#include <public.sdk/source/vst/hosting/module_win32.cpp>
|
||||
|
||||
void justdewit(const std::string& path) {
|
||||
std::string error;
|
||||
std::shared_ptr<VST3::Hosting::Module> plugin =
|
||||
VST3::Hosting::Win32Module::create(path, error);
|
||||
|
||||
if (plugin) {
|
||||
std::cerr << "Hooray!" << std::endl;
|
||||
} else {
|
||||
std::cerr << "Ohnoes!" << std::endl;
|
||||
std::cerr << error << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user