diff --git a/src/common/serialization.h b/src/common/serialization.h index 47b29274..3c133bfe 100644 --- a/src/common/serialization.h +++ b/src/common/serialization.h @@ -51,9 +51,11 @@ constexpr size_t max_midi_events = max_buffer_size / sizeof(size_t); [[maybe_unused]] constexpr size_t max_string_length = 64; /** - * The size for a buffer in which we're receiving chunks. + * The size for a buffer in which we're receiving chunks. Allow for up to 1 GB + * chunks. Hopefully no plugin will come anywhere near this limit, but it will + * add up when plugins start to audio samples in their presets. */ -constexpr size_t binary_buffer_size = 2 << 20; +constexpr size_t binary_buffer_size = 1 << 30; // The cannonical overloading template for `std::visitor`, not sure why this // isn't part of the standard library @@ -62,7 +64,7 @@ struct overload : Ts... { using Ts::operator()...; }; template -overload(Ts...)->overload; +overload(Ts...) -> overload; /** * The serialization function for `AEffect` structs. This will s serialize all diff --git a/src/wine-host/plugin-bridge.cpp b/src/wine-host/plugin-bridge.cpp index 9e2f840d..ac87538b 100644 --- a/src/wine-host/plugin-bridge.cpp +++ b/src/wine-host/plugin-bridge.cpp @@ -64,7 +64,7 @@ PluginBridge& get_bridge_instance(const AEffect* plugin) { PluginBridge::PluginBridge(std::string plugin_dll_path, std::string socket_endpoint_path) - : plugin_handle(LoadLibrary(plugin_dll_path.c_str()), &FreeLibrary), + : plugin_handle(LoadLibrary(plugin_dll_path.c_str()), FreeLibrary), io_context(), socket_endpoint(socket_endpoint_path), host_vst_dispatch(io_context),