From 9c34bf1dec4ae7c86307956b3c797de811be5932 Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 4 Nov 2023 02:38:33 +0900 Subject: [PATCH] =?UTF-8?q?Java=20API=E3=81=A7=E3=82=82`RUNTIME`deref?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core_java_api/src/synthesizer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/voicevox_core_java_api/src/synthesizer.rs b/crates/voicevox_core_java_api/src/synthesizer.rs index f34b2daa0..fac37100e 100644 --- a/crates/voicevox_core_java_api/src/synthesizer.rs +++ b/crates/voicevox_core_java_api/src/synthesizer.rs @@ -18,6 +18,10 @@ unsafe extern "system" fn Java_jp_hiroshiba_voicevoxcore_Synthesizer_rsNew<'loca builder: JObject<'local>, ) { throw_if_err(env, (), |env| { + // ロガーを起動 + // FIXME: `throw_if_err`を`run`とかに改名し、`init_logger`をその中に移動 + let _ = *RUNTIME; + let mut options = voicevox_core::InitializeOptions::default(); let acceleration_mode = env