Remove calls to wave_set_callback_is_output_enabled.

These calls are used to pre-emptively exit when writing audio
data. This is also handled within dispatch_audio. The difference
is that this callback could allow espeak to cancel quicker. In
practice it does not make much difference.
This commit is contained in:
Reece H. Dunn
2016-02-07 17:40:09 +00:00
parent 2a628e982f
commit 94c5efe0b3
5 changed files with 1 additions and 69 deletions
+1 -3
View File
@@ -119,10 +119,8 @@ static int dispatch_audio(short *outbuf, int length, espeak_EVENT *event)
return -1;
}
#ifdef USE_ASYNC
if ((my_mode & ENOUTPUT_MODE_SYNCHRONOUS) == 0) {
wave_set_callback_is_output_enabled(fifo_is_command_enabled);
if ((my_mode & ENOUTPUT_MODE_SYNCHRONOUS) == 0)
event_init();
}
#endif
}
}