mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-16 21:50:11 +02:00
Pass through host provided IBStream objects
So if the host supports IStreamAttributes, we can also provide objects that support the same itnerface to the plugin.
This commit is contained in:
@@ -111,12 +111,14 @@ class YaProgramListData : public Steinberg::Vst::IProgramListData {
|
||||
|
||||
Steinberg::Vst::ProgramListID list_id;
|
||||
int32 program_index;
|
||||
YaBStream data;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.value4b(list_id);
|
||||
s.value4b(program_index);
|
||||
s.object(data);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -108,11 +108,13 @@ class YaUnitData : public Steinberg::Vst::IUnitData {
|
||||
native_size_t instance_id;
|
||||
|
||||
Steinberg::Vst::UnitID unit_id;
|
||||
YaBStream data;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.value4b(unit_id);
|
||||
s.object(data);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -96,11 +96,13 @@ class YaXmlRepresentationController
|
||||
native_size_t instance_id;
|
||||
|
||||
Steinberg::Vst::RepresentationInfo info;
|
||||
YaBStream stream;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.object(info);
|
||||
s.object(stream);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user