Add a dynamic wrapper for VstSpeakerArrangement

Similar to `DynamicVstEvents`, so we can serialize the object to binary
data transfer it over our sockets.
This commit is contained in:
Robbert van der Helm
2020-05-07 16:45:04 +02:00
parent 0822e49c59
commit a82c3ac08c
3 changed files with 96 additions and 7 deletions
+4 -1
View File
@@ -80,6 +80,9 @@ struct VstSpeaker {
* during `eff{Get,Set}SpeakerArrangement`. Reverse engineered from Renoise by
* attaching gdb and dumping both the `value` and `data` pointers when the host
* calls opcode 42.
*
* Use the `DynamicSpeakerArrangement` class to serialize and construct these
* objects.
*/
struct VstSpeakerArrangement {
int flags;
@@ -88,5 +91,5 @@ struct VstSpeakerArrangement {
* Variable length array of speakers. Similar to how `VstEvents` works, but
* with an array of objects instead of an array of pointers to objects.
*/
VstSpeaker speakers[8];
VstSpeaker speakers[2];
};