Fix handling of large chunk data

This commit is contained in:
Robbert van der Helm
2020-04-27 16:41:55 +02:00
parent 527db1f49f
commit 13dcb2f74a
3 changed files with 16 additions and 7 deletions
+5 -1
View File
@@ -353,7 +353,11 @@ intptr_t HostBridge::dispatch(AEffect* /*plugin*/,
break;
}
// TODO: Maybe reuse buffers here when dealing with chunk data
// We don't reuse any buffers here like we do for audio processing. This
// would be useful for chunk data, but since that's only needed when saving
// and loading plugin state it's much better to have bitsery or our
// receiving function temporarily allocate a large enough buffer rather than
// to have a bunch of allocated memory sitting around doing nothing.
return send_event(host_vst_dispatch, dispatch_mutex, converter,
std::pair<Logger&, bool>(logger, true), opcode, index,
value, data, option);