mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Add logging for IHostApplication::createInstance
This commit is contained in:
@@ -66,24 +66,23 @@ Vst3HostContextProxyImpl::createInstance(Steinberg::TUID /*cid*/,
|
|||||||
// These objects don't have to be created by the actual host since they'll
|
// These objects don't have to be created by the actual host since they'll
|
||||||
// only be used as an argument to other functions. We can just serialize
|
// only be used as an argument to other functions. We can just serialize
|
||||||
// them at that point.
|
// them at that point.
|
||||||
|
tresult response;
|
||||||
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
|
|
||||||
*obj = static_cast<Steinberg::Vst::IMessage*>(new YaMessage{});
|
*obj = static_cast<Steinberg::Vst::IMessage*>(new YaMessage{});
|
||||||
return Steinberg::kResultTrue;
|
response = 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
|
|
||||||
*obj =
|
*obj =
|
||||||
static_cast<Steinberg::Vst::IAttributeList*>(new YaAttributeList{});
|
static_cast<Steinberg::Vst::IAttributeList*>(new YaAttributeList{});
|
||||||
return Steinberg::kResultTrue;
|
response = Steinberg::kResultTrue;
|
||||||
} else {
|
} else {
|
||||||
// When the host requests an interface we do not (yet) implement,
|
*obj = nullptr;
|
||||||
// we'll print a recognizable log message
|
response = Steinberg::kNotImplemented;
|
||||||
const Steinberg::FUID uid = Steinberg::FUID::fromTUID(_iid);
|
|
||||||
bridge.logger.log_query_interface(
|
|
||||||
"In IHostApplication::createInstance()", Steinberg::kNotImplemented,
|
|
||||||
uid);
|
|
||||||
|
|
||||||
return Steinberg::kNotImplemented;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Steinberg::FUID uid = Steinberg::FUID::fromTUID(_iid);
|
||||||
|
bridge.logger.log_query_interface("In IHostApplication::createInstance()",
|
||||||
|
response, uid);
|
||||||
|
|
||||||
|
return response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user