添加处理音频窗口大小的功能,支持动态调整插件宿主窗口尺寸
This commit is contained in:
@@ -42,6 +42,14 @@ inline VstIntPtr VSTCALLBACK host_callback(AEffect* effect,
|
|||||||
case audioMasterGetInputLatency:
|
case audioMasterGetInputLatency:
|
||||||
case audioMasterGetOutputLatency:
|
case audioMasterGetOutputLatency:
|
||||||
return 0;
|
return 0;
|
||||||
|
case audioMasterSizeWindow: {
|
||||||
|
const auto width = static_cast<int32_t>(index);
|
||||||
|
const auto height = static_cast<int32_t>(value);
|
||||||
|
if (window_handle) {
|
||||||
|
glfwSetWindowSize(window_handle, width, height);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* -------- 显示刷新 -------- */
|
/* -------- 显示刷新 -------- */
|
||||||
case audioMasterUpdateDisplay:
|
case audioMasterUpdateDisplay:
|
||||||
|
|||||||
Reference in New Issue
Block a user