Implement IPlugView::isPLatformTypeSupported()

This of course requires us to substitute the relevant Linux platform
type for the Win32 one.
This commit is contained in:
Robbert van der Helm
2020-12-19 22:33:58 +01:00
parent 18a7908bf8
commit e72e6d5642
6 changed files with 56 additions and 3 deletions
+13
View File
@@ -398,6 +398,19 @@ void Vst3Bridge::run() {
request.instance_id)
: std::nullopt)};
},
[&](const YaPlugView::IsPlatformTypeSupported& request)
-> YaPlugView::IsPlatformTypeSupported::Response {
// The host will of course want to pass an X11 window ID for the
// plugin to embed itself in, so we'll have to translate this to
// a HWND
const std::string type =
request.type == Steinberg::kPlatformTypeX11EmbedWindowID
? Steinberg::kPlatformTypeHWND
: request.type;
return object_instances[request.owner_instance_id]
.plug_view->isPlatformTypeSupported(type.c_str());
},
[&](YaPluginBase::Initialize& request)
-> YaPluginBase::Initialize::Response {
// If we got passed a host context, we'll create a proxy object