Use std::array for serializing UIDs

These are easily assignable and we have to convert between char
pointers, char arrays and UID objects all the time anyways.
This commit is contained in:
Robbert van der Helm
2020-12-08 23:00:44 +01:00
parent 7828fc7bef
commit 2e6184171c
4 changed files with 47 additions and 8 deletions
+3 -1
View File
@@ -53,9 +53,11 @@ void Vst3Bridge::run() {
overload{
[&](const YaComponent::Create& args)
-> YaComponent::Create::Response {
Steinberg::TUID cid;
std::copy(args.cid.begin(), args.cid.end(), cid);
Steinberg::IPtr<Steinberg::Vst::IComponent> component =
module->getFactory()
.createInstance<Steinberg::Vst::IComponent>(args.cid);
.createInstance<Steinberg::Vst::IComponent>(cid);
if (component) {
std::lock_guard lock(component_instances_mutex);