mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 13:29:37 +00:00
Even more bloody logging.
This commit is contained in:
parent
290eb06d02
commit
cdfb7ddb77
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user