mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user