altosui: Add AltosVoice.drain() to wait for queued speech to finish
authorKeith Packard <keithp@keithp.com>
Sun, 5 Sep 2010 08:19:11 +0000 (01:19 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 5 Sep 2010 08:19:11 +0000 (01:19 -0700)
commit4dec5c36702d76dc95beada7c1d3222a638a2cbb
tree7727ca0f6f02e38854d408a120bd6c68603e7ea7
parent410ba89eef9c9817eef81b702966cb88820ff7c4
altosui: Add AltosVoice.drain() to wait for queued speech to finish

drain() blocks until all pending phrases have been processed, allowing
the UI code to avoid pending data that will end up stale by the time
it is emitted.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosVoice.java