mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-21 03:13:56 +02:00
Add serialization for speaker arrangements
This commit is contained in:
@@ -246,6 +246,14 @@ class alignas(16) DynamicSpeakerArrangement {
|
|||||||
*/
|
*/
|
||||||
std::vector<VstSpeaker> speakers;
|
std::vector<VstSpeaker> speakers;
|
||||||
|
|
||||||
|
template <typename S>
|
||||||
|
void serialize(S& s) {
|
||||||
|
s.value4b(flags);
|
||||||
|
s.container(
|
||||||
|
speakers, max_audio_channels,
|
||||||
|
[](S& s, VstSpeaker& speaker) { s.container1b(speaker.data); });
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* Some buffer we can build a `VstSpeakerArrangement` object in. This object
|
* Some buffer we can build a `VstSpeakerArrangement` object in. This object
|
||||||
@@ -298,9 +306,9 @@ struct WantsString {};
|
|||||||
* clarity's sake.
|
* clarity's sake.
|
||||||
*
|
*
|
||||||
* - A byte vector for handling chunk data during `effSetChunk()`. We can't
|
* - A byte vector for handling chunk data during `effSetChunk()`. We can't
|
||||||
reuse the regular string handling here since the data may contain null
|
* reuse the regular string handling here since the data may contain null
|
||||||
bytes and `std::string::as_c_str()` might cut off everything after the
|
* bytes and `std::string::as_c_str()` might cut off everything after the
|
||||||
first null byte.
|
* first null byte.
|
||||||
* - An X11 window handle.
|
* - An X11 window handle.
|
||||||
* - Specific data structures from `aeffextx.h`. For instance an event with the
|
* - Specific data structures from `aeffextx.h`. For instance an event with the
|
||||||
* opcode `effProcessEvents` the hosts passes a `VstEvents` struct containing
|
* opcode `effProcessEvents` the hosts passes a `VstEvents` struct containing
|
||||||
|
|||||||
Reference in New Issue
Block a user