diff --git a/src/backend/src/vst2_host/src/vst2host.cpp b/src/backend/src/vst2_host/src/vst2host.cpp index a3c048f..f1c5c51 100644 --- a/src/backend/src/vst2_host/src/vst2host.cpp +++ b/src/backend/src/vst2_host/src/vst2host.cpp @@ -42,6 +42,14 @@ inline VstIntPtr VSTCALLBACK host_callback(AEffect* effect, case audioMasterGetInputLatency: case audioMasterGetOutputLatency: return 0; + case audioMasterSizeWindow: { + const auto width = static_cast(index); + const auto height = static_cast(value); + if (window_handle) { + glfwSetWindowSize(window_handle, width, height); + } + return 1; + } /* -------- 显示刷新 -------- */ case audioMasterUpdateDisplay: