mirror of https://github.com/ndarilek/tts-rs.git
Fix another possibly broken comparison.
This commit is contained in:
parent
c65c0022d8
commit
45255a8049
|
@ -268,7 +268,7 @@ impl Backend for AvFoundation {
|
||||||
fn is_speaking(&self) -> Result<bool, Error> {
|
fn is_speaking(&self) -> Result<bool, Error> {
|
||||||
trace!("is_speaking()");
|
trace!("is_speaking()");
|
||||||
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
|
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
|
||||||
Ok(is_speaking == 1)
|
Ok(is_speaking != 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue