Closed iProdigy closed 1 year ago
queue
currentClip
Thread
Executor
Future
Thread#suspend
InputStream
#play
Dialog
TTSMessage
Thread.sleep
Great, thanks!
queue
usage thread-safecurrentClip
usage thread-safeThread
toExecutor
/Future
(avoid deprecatedThread#suspend
call)InputStream
in#play
by reading blocks rather than single byte's (and avoid potential resource leaks)Dialog
/TTSMessage
Thread.sleep