From 45c36e93a89cba7d27568d582990b3f692e503cc Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 7 Apr 2021 15:09:37 +0200 Subject: [PATCH 1/2] Fix Atom port corruption in LV2 --- plugins/lv2/sfizz.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/lv2/sfizz.cpp b/plugins/lv2/sfizz.cpp index 059c2dd61..587b9efb5 100644 --- a/plugins/lv2/sfizz.cpp +++ b/plugins/lv2/sfizz.cpp @@ -330,7 +330,8 @@ sfizz_lv2_receive_message(void* data, int delay, const char* path, const char* s lv2_atom_forge_frame_time(forge, 0) && lv2_atom_forge_atom(forge, osc_size, self->sfizz_osc_blob_uri) && lv2_atom_forge_raw(forge, osc_temp, osc_size); - lv2_atom_forge_pad(forge, osc_size); + if (write_ok) + lv2_atom_forge_pad(forge, osc_size); (void)write_ok; } From 7c7537b4281637951622ab341ec268109e43535f Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Wed, 7 Apr 2021 15:24:34 +0200 Subject: [PATCH 2/2] Allocate greater port sizes --- plugins/lv2/sfizz.ttl.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/lv2/sfizz.ttl.in b/plugins/lv2/sfizz.ttl.in index 112a970c7..bd1d6e8a9 100644 --- a/plugins/lv2/sfizz.ttl.in +++ b/plugins/lv2/sfizz.ttl.in @@ -99,7 +99,7 @@ midnam:update a lv2:Feature . lv2:symbol "control" ; lv2:name "Control", "ContrĂ´le"@fr ; - rsz:minimumSize 65536 ; + rsz:minimumSize 524288 ; ] , [ a lv2:OutputPort, atom:AtomPort ; atom:bufferType atom:Sequence ; @@ -108,7 +108,7 @@ midnam:update a lv2:Feature . lv2:symbol "notify" ; lv2:name "Notify", "Notification"@fr ; - rsz:minimumSize 65536 ; + rsz:minimumSize 524288 ; ] , [ a lv2:OutputPort, atom:AtomPort ; atom:bufferType atom:Sequence ; @@ -118,7 +118,7 @@ midnam:update a lv2:Feature . lv2:symbol "automate" ; lv2:name "Automate", "Automatisation"@fr ; - rsz:minimumSize 65536 ; + rsz:minimumSize 524288 ; ] , [ a lv2:AudioPort, lv2:OutputPort ; lv2:index 3 ;