mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 20:40:03 +02:00
Increase default serialization buffer size
This commit is contained in:
@@ -343,7 +343,7 @@ class ClapSockets final : public Sockets {
|
||||
const T& object,
|
||||
std::optional<std::pair<ClapLogger&, bool>> logging) {
|
||||
typename T::Response response_object;
|
||||
thread_local SerializationBuffer<256> audio_thread_buffer{};
|
||||
thread_local SerializationBuffer<2048> audio_thread_buffer{};
|
||||
|
||||
return audio_thread_sockets_.at(object.owner_instance_id)
|
||||
.callback_.receive_into(object, response_object, logging,
|
||||
|
||||
@@ -1110,6 +1110,8 @@ class TypedMessageHandler : public AdHocSocketHandler<Thread> {
|
||||
// every time, but on the audio processor side we store the
|
||||
// actual variant within an object and we then use some hackery
|
||||
// to always keep the large process data object in memory.
|
||||
// NOTE: Unlike the VST2 version, this persistent buffer is only
|
||||
// used for audio thread messages
|
||||
thread_local SerializationBuffer<256> persistent_buffer{};
|
||||
thread_local Request persistent_object;
|
||||
|
||||
|
||||
@@ -263,7 +263,7 @@ class Vst3Sockets final : public Sockets {
|
||||
typename T::Response& response_object,
|
||||
size_t instance_id,
|
||||
std::optional<std::pair<Vst3Logger&, bool>> logging) {
|
||||
thread_local SerializationBuffer<256> audio_processor_buffer{};
|
||||
thread_local SerializationBuffer<2048> audio_processor_buffer{};
|
||||
|
||||
return audio_processor_sockets_.at(instance_id)
|
||||
.receive_into(object, response_object, logging,
|
||||
|
||||
Reference in New Issue
Block a user