diff options
author | Charles Chen <clchen@google.com> | 2010-02-05 16:00:17 -0800 |
---|---|---|
committer | Charles Chen <clchen@google.com> | 2010-02-05 17:13:59 -0800 |
commit | f5c87b386c839ccc9974bcb7f636aa2f8c14f78d (patch) | |
tree | a43fbb73b7e5483c98660c6e32f170ee86b76508 /packages/TtsService | |
parent | 679091849754c60bdde5670495c38493065fd308 (diff) | |
download | frameworks_base-f5c87b386c839ccc9974bcb7f636aa2f8c14f78d.zip frameworks_base-f5c87b386c839ccc9974bcb7f636aa2f8c14f78d.tar.gz frameworks_base-f5c87b386c839ccc9974bcb7f636aa2f8c14f78d.tar.bz2 |
Fixing a bug with the TextToSpeech speech queue processing.
The queue processor should not be called for the next item
until synthesis has actually happened for the current item;
before it was being incorrectly called regardless of
whether or not the synthesizer had processed the current item.
Diffstat (limited to 'packages/TtsService')
-rwxr-xr-x | packages/TtsService/src/android/tts/TtsService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/TtsService/src/android/tts/TtsService.java b/packages/TtsService/src/android/tts/TtsService.java index 1efa5a3..b7eea2e 100755 --- a/packages/TtsService/src/android/tts/TtsService.java +++ b/packages/TtsService/src/android/tts/TtsService.java @@ -802,8 +802,8 @@ public class TtsService extends Service implements OnCompletionListener { } if (synthAvailable) { synthesizerLock.unlock(); + processSpeechQueue(); } - processSpeechQueue(); } } } @@ -882,8 +882,8 @@ public class TtsService extends Service implements OnCompletionListener { } if (synthAvailable) { synthesizerLock.unlock(); + processSpeechQueue(); } - processSpeechQueue(); } } } |