mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Use UID conversion for GetControllerClassId
This commit is contained in:
@@ -1759,7 +1759,7 @@ void Vst3Logger::log_response(
|
||||
if (response.result == Steinberg::kResultOk) {
|
||||
message << ", "
|
||||
<< format_uid(Steinberg::FUID::fromTUID(
|
||||
response.editor_cid.data()));
|
||||
response.editor_cid.get_native_uid().data()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -73,12 +73,12 @@ class YaComponent : public Steinberg::Vst::IComponent {
|
||||
*/
|
||||
struct GetControllerClassIdResponse {
|
||||
UniversalTResult result;
|
||||
ArrayUID editor_cid;
|
||||
WineUID editor_cid;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.object(result);
|
||||
s.container1b(editor_cid);
|
||||
s.object(editor_cid);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -169,8 +169,8 @@ Vst3PluginProxyImpl::getControllerClassId(Steinberg::TUID classId) {
|
||||
YaComponent::GetControllerClassId{.instance_id =
|
||||
instance_id()});
|
||||
|
||||
std::copy(response.editor_cid.begin(), response.editor_cid.end(),
|
||||
classId);
|
||||
ArrayUID native_uid = response.editor_cid.get_native_uid();
|
||||
std::copy(native_uid.begin(), native_uid.end(), classId);
|
||||
|
||||
return response.result;
|
||||
} else {
|
||||
|
||||
@@ -1149,7 +1149,7 @@ size_t Vst3Bridge::register_object_instance(
|
||||
.component->getControllerClassId(cid);
|
||||
|
||||
return YaComponent::GetControllerClassIdResponse{
|
||||
.result = result, .editor_cid = std::to_array(cid)};
|
||||
.result = result, .editor_cid = cid};
|
||||
},
|
||||
[&](const YaComponent::SetIoMode& request)
|
||||
-> YaComponent::SetIoMode::Response {
|
||||
|
||||
Reference in New Issue
Block a user