mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 04:50:43 +02:00
Fix IAttributeList serialization
This commit is contained in:
@@ -61,22 +61,22 @@ class YaAttributeList : public Steinberg::Vst::IAttributeList {
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.ext(attrs_int, bitsery::ext::StdMap{1 << 20},
|
||||
[](S& s, AttrID& key, int64& value) {
|
||||
[](S& s, std::string& key, int64& value) {
|
||||
s.text1b(key, 1024);
|
||||
s.value8b(value);
|
||||
});
|
||||
s.ext(attrs_float, bitsery::ext::StdMap{1 << 20},
|
||||
[](S& s, AttrID& key, double& value) {
|
||||
[](S& s, std::string& key, double& value) {
|
||||
s.text1b(key, 1024);
|
||||
s.value8b(value);
|
||||
});
|
||||
s.ext(attrs_string, bitsery::ext::StdMap{1 << 20},
|
||||
[](S& s, AttrID& key, double& value) {
|
||||
[](S& s, std::string& key, std::u16string& value) {
|
||||
s.text1b(key, 1024);
|
||||
s.text2b(value, 1 << 20);
|
||||
});
|
||||
s.ext(attrs_binary, bitsery::ext::StdMap{1 << 20},
|
||||
[](S& s, AttrID& key, std::vector<uint8_t>& value) {
|
||||
[](S& s, std::string& key, std::vector<uint8_t>& value) {
|
||||
s.text1b(key, 1024);
|
||||
s.container1b(value, 1 << 20);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user