mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Use text2b instead of container2b for u16string
Should be equivalent. The only reason why we use container2b in some places is because strings based on `Steinberg::char16` arrays will have an incorrect length on the Wine side, because character traits for `wchar_t` is still reflects Linux instead of Windows there.
This commit is contained in:
@@ -85,7 +85,7 @@ struct YaNoteExpressionTextEvent {
|
|||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.value4b(type_id);
|
s.value4b(type_id);
|
||||||
s.value4b(note_id);
|
s.value4b(note_id);
|
||||||
s.container2b(text, std::extent_v<Steinberg::Vst::String128>);
|
s.text2b(text, std::extent_v<Steinberg::Vst::String128>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -120,7 +120,7 @@ struct YaChordEvent {
|
|||||||
s.value2b(root);
|
s.value2b(root);
|
||||||
s.value2b(bass_note);
|
s.value2b(bass_note);
|
||||||
s.value2b(mask);
|
s.value2b(mask);
|
||||||
s.container2b(text, std::extent_v<Steinberg::Vst::String128>);
|
s.text2b(text, std::extent_v<Steinberg::Vst::String128>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ struct YaScaleEvent {
|
|||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.value2b(root);
|
s.value2b(root);
|
||||||
s.value2b(mask);
|
s.value2b(mask);
|
||||||
s.container2b(text, std::extent_v<Steinberg::Vst::String128>);
|
s.text2b(text, std::extent_v<Steinberg::Vst::String128>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
|
|||||||
template <typename S>
|
template <typename S>
|
||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.object(result);
|
s.object(result);
|
||||||
s.container2b(string, std::extent_v<Steinberg::Vst::String128>);
|
s.text2b(string, std::extent_v<Steinberg::Vst::String128>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -225,7 +225,7 @@ class YaEditController : public Steinberg::Vst::IEditController {
|
|||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.value8b(instance_id);
|
s.value8b(instance_id);
|
||||||
s.value4b(id);
|
s.value4b(id);
|
||||||
s.container2b(string, std::extent_v<Steinberg::Vst::String128>);
|
s.text2b(string, std::extent_v<Steinberg::Vst::String128>);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user