mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
LV2 Client: Request buffers large enough to hold a change event for each parameter
This commit is contained in:
parent
e68a62af7f
commit
208fc05480
1 changed files with 10 additions and 0 deletions
|
|
@ -961,6 +961,7 @@ private:
|
|||
"@prefix pprop: <http://lv2plug.in/ns/ext/port-props#> .\n"
|
||||
"@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .\n"
|
||||
"@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .\n"
|
||||
"@prefix rsz: <http://lv2plug.in/ns/ext/resize-port#> .\n"
|
||||
"@prefix state: <http://lv2plug.in/ns/ext/state#> .\n"
|
||||
"@prefix time: <http://lv2plug.in/ns/ext/time#> .\n"
|
||||
"@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .\n"
|
||||
|
|
@ -1202,7 +1203,15 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
// In the event that the plugin decides to send all of its parameters in one go,
|
||||
// we should ensure that the output buffer is large enough to accommodate, with some
|
||||
// extra room for the sequence header, MIDI messages etc..
|
||||
const auto patchSetSizeBytes = 72;
|
||||
const auto additionalSize = 8192;
|
||||
const auto atomPortMinSize = proc.getParameters().size() * patchSetSizeBytes + additionalSize;
|
||||
|
||||
os << "\t\ta lv2:InputPort , atom:AtomPort ;\n"
|
||||
"\t\trsz:minimumSize " << atomPortMinSize << " ;\n"
|
||||
"\t\tatom:bufferType atom:Sequence ;\n"
|
||||
"\t\tatom:supports\n";
|
||||
|
||||
|
|
@ -1219,6 +1228,7 @@ private:
|
|||
"\t\tlv2:name \"In\" ;\n"
|
||||
"\t] , [\n"
|
||||
"\t\ta lv2:OutputPort , atom:AtomPort ;\n"
|
||||
"\t\trsz:minimumSize " << atomPortMinSize << " ;\n"
|
||||
"\t\tatom:bufferType atom:Sequence ;\n"
|
||||
"\t\tatom:supports\n";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue