mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Replace SDK IMessage implementation with ours
This commit is contained in:
@@ -18,7 +18,8 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <public.sdk/source/vst/hosting/hostclasses.h>
|
#include "../../../common/serialization/vst3/attribute-list.h"
|
||||||
|
#include "../../../common/serialization/vst3/message.h"
|
||||||
|
|
||||||
Vst3HostContextProxyImpl::Vst3HostContextProxyImpl(
|
Vst3HostContextProxyImpl::Vst3HostContextProxyImpl(
|
||||||
Vst3Bridge& bridge,
|
Vst3Bridge& bridge,
|
||||||
@@ -72,13 +73,12 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
|
|||||||
Steinberg::FUID iid = Steinberg::FUID::fromTUID(_iid);
|
Steinberg::FUID iid = Steinberg::FUID::fromTUID(_iid);
|
||||||
if (iid == Steinberg::Vst::IMessage::iid) {
|
if (iid == Steinberg::Vst::IMessage::iid) {
|
||||||
// TODO: Add logging for this on verbosity level 1
|
// TODO: Add logging for this on verbosity level 1
|
||||||
*obj = static_cast<Steinberg::Vst::IMessage*>(
|
*obj = static_cast<Steinberg::Vst::IMessage*>(new YaMessage{});
|
||||||
new Steinberg::Vst::HostMessage{});
|
|
||||||
return Steinberg::kResultTrue;
|
return Steinberg::kResultTrue;
|
||||||
} else if (iid == Steinberg::Vst::IAttributeList::iid) {
|
} else if (iid == Steinberg::Vst::IAttributeList::iid) {
|
||||||
// TODO: Add logging for this on verbosity level 1
|
// TODO: Add logging for this on verbosity level 1
|
||||||
*obj = static_cast<Steinberg::Vst::IAttributeList*>(
|
*obj =
|
||||||
new Steinberg::Vst::HostAttributeList{});
|
static_cast<Steinberg::Vst::IAttributeList*>(new YaAttributeList{});
|
||||||
return Steinberg::kResultTrue;
|
return Steinberg::kResultTrue;
|
||||||
} else {
|
} else {
|
||||||
// When the host requests an interface we do not (yet) implement,
|
// When the host requests an interface we do not (yet) implement,
|
||||||
|
|||||||
Reference in New Issue
Block a user