From cdfb7ddb7782f0faa00f23a8074da1571b114b32 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Fri, 12 Mar 2021 06:59:49 -0600 Subject: [PATCH] Even more bloody logging. --- src/backends/av_foundation.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backends/av_foundation.rs b/src/backends/av_foundation.rs index 5f93394..d7a747b 100644 --- a/src/backends/av_foundation.rs +++ b/src/backends/av_foundation.rs @@ -125,12 +125,16 @@ impl AvFoundation { let delegate_obj: *mut Object = unsafe { msg_send![delegate_class, new] }; let mut backend_id = NEXT_BACKEND_ID.lock().unwrap(); let rv = unsafe { + trace!("Creating synth"); let synth: *mut Object = msg_send![class!(AVSpeechSynthesizer), new]; + trace!("Allocated {:?}", synth); delegate_obj .as_mut() .unwrap() .set_ivar("backend_id", *backend_id); + trace!("Set backend ID in delegate"); let _: () = msg_send![synth, setDelegate: delegate_obj]; + trace!("Assigned delegate: {:?}", delegate_obj); AvFoundation { id: BackendId::AvFoundation(*backend_id), delegate: delegate_obj,