1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-10-09 21:09:38 +00:00

Fix another possibly broken comparison.

This commit is contained in:
Nolan Darilek 2021-03-15 13:04:38 -05:00
parent c65c0022d8
commit 45255a8049

View File

@ -268,7 +268,7 @@ impl Backend for AvFoundation {
fn is_speaking(&self) -> Result<bool, Error> {
trace!("is_speaking()");
let is_speaking: i8 = unsafe { msg_send![self.synth, isSpeaking] };
Ok(is_speaking == 1)
Ok(is_speaking != 0)
}
}