From dc57b52be17cd73eabcf1fe43ad51adfc9a130fb Mon Sep 17 00:00:00 2001 From: daiqingshuang <daiqingshuang@xxjiwu.com> Date: Tue, 21 May 2024 15:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E9=94=99?= =?UTF-8?q?=E8=AF=AF,=20=E4=BF=AE=E5=A4=8Dvst2=E5=8F=AF=E8=83=BD=E4=BC=9A?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/application/application.cpp | 5 ----- core/audio/plugin_host/vst2/vst2_plugin_host.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/core/application/application.cpp b/core/application/application.cpp index 5c3c59e..2b1115f 100644 --- a/core/application/application.cpp +++ b/core/application/application.cpp @@ -13,13 +13,8 @@ application::application() { void application::init() { // 创建控制台日志记录器 -#if PLATFORM_MACOS auto console_sink = std::make_shared<spdlog::sinks::stdout_sink_st>(); console_sink->set_level(spdlog::level::info); // 设置控制台日志级别 -#else - auto console_sink = std::make_shared<spdlog::sinks::stdout_color_sink_st>(); - console_sink->set_level(spdlog::level::info); // 设置控制台日志级别 -#endif // 创建文件日志记录器 auto file_sink = std::make_shared<spdlog::sinks::daily_file_sink_st>("logs/log.txt", 0, 0); // 每天创建一个新的日志文件 diff --git a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp index e354bc3..27cca2e 100644 --- a/core/audio/plugin_host/vst2/vst2_plugin_host.cpp +++ b/core/audio/plugin_host/vst2/vst2_plugin_host.cpp @@ -222,7 +222,7 @@ void vst2_plugin_host::idle_editor() { } bool vst2_plugin_host::has_editor() const { - return effect_->flags & effFlagsHasEditor; + return effect_ && effect_->flags & effFlagsHasEditor; } void vst2_plugin_host::get_editor_size(uint32_t& width, uint32_t& height) const {