mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-16 08:23:55 +02:00
Use the in new place optional extension
This commit is contained in:
@@ -16,10 +16,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <pluginterfaces/vst/ivstaudioprocessor.h>
|
||||
|
||||
#include "../../../audio-shm.h"
|
||||
#include "../../../bitsery/ext/in-place-optional.h"
|
||||
#include "../../common.h"
|
||||
#include "../base.h"
|
||||
#include "../process-data.h"
|
||||
@@ -279,7 +279,7 @@ class YaAudioProcessor : public Steinberg::Vst::IAudioProcessor {
|
||||
s.value8b(instance_id);
|
||||
s.object(data);
|
||||
|
||||
s.ext(new_realtime_priority, bitsery::ext::StdOptional{},
|
||||
s.ext(new_realtime_priority, bitsery::ext::InPlaceOptional{},
|
||||
[](S& s, int& priority) { s.value4b(priority); });
|
||||
}
|
||||
};
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <pluginterfaces/vst/ivstcomponent.h>
|
||||
|
||||
#include "../../../bitsery/ext/in-place-optional.h"
|
||||
#include "../../common.h"
|
||||
#include "../base.h"
|
||||
|
||||
|
||||
@@ -18,10 +18,10 @@
|
||||
|
||||
#include <variant>
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include "../../../bitsery/ext/in-place-variant.h"
|
||||
#include <pluginterfaces/vst/ivstmessage.h>
|
||||
#include "../../../bitsery/ext/in-place-variant.h"
|
||||
|
||||
#include "../../../bitsery/ext/in-place-optional.h"
|
||||
#include "../../common.h"
|
||||
#include "../base.h"
|
||||
#include "../message.h"
|
||||
@@ -79,8 +79,9 @@ class YaConnectionPoint : public Steinberg::Vst::IConnectionPoint {
|
||||
* `IConnectionPoint`, but let's stay consistent with the overall style
|
||||
* here.
|
||||
*/
|
||||
Vst3ConnectionPointProxyConstructArgs(Steinberg::IPtr<FUnknown> object,
|
||||
size_t owner_instance_id) noexcept;
|
||||
Vst3ConnectionPointProxyConstructArgs(
|
||||
Steinberg::IPtr<FUnknown> object,
|
||||
size_t owner_instance_id) noexcept;
|
||||
|
||||
/**
|
||||
* The unique instance identifier of the proxy object instance this
|
||||
@@ -164,7 +165,7 @@ class YaConnectionPoint : public Steinberg::Vst::IConnectionPoint {
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.ext(other_instance_id, bitsery::ext::StdOptional{},
|
||||
s.ext(other_instance_id, bitsery::ext::InPlaceOptional{},
|
||||
[](S& s, native_size_t& instance_id) {
|
||||
s.value8b(instance_id);
|
||||
});
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <bitsery/ext/std_optional.h>
|
||||
#include <pluginterfaces/vst/ivsteditcontroller.h>
|
||||
|
||||
#include "../../../bitsery/ext/in-place-optional.h"
|
||||
#include "../../common.h"
|
||||
#include "../base.h"
|
||||
#include "../bstream.h"
|
||||
@@ -354,7 +354,8 @@ class YaEditController : public Steinberg::Vst::IEditController {
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.ext(component_handler_proxy_args, bitsery::ext::StdOptional{});
|
||||
s.ext(component_handler_proxy_args,
|
||||
bitsery::ext::InPlaceOptional{});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -372,7 +373,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.ext(plug_view_args, bitsery::ext::StdOptional{});
|
||||
s.ext(plug_view_args, bitsery::ext::InPlaceOptional{});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user