diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-20 09:51:21 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-20 09:51:21 -0700 |
commit | 5f6133a100d4477dfcea919e81ff301f9352cd32 (patch) | |
tree | 306f0cf68441a2286a8b2592ca5f0fdf76bbb308 /packages | |
parent | 8b9baf2dfb4dd1bd6379d923a3aa61a082783368 (diff) | |
parent | 342c329203ef1cb856bd4e0a6591b2d8080c0a64 (diff) | |
download | frameworks_base-5f6133a100d4477dfcea919e81ff301f9352cd32.zip frameworks_base-5f6133a100d4477dfcea919e81ff301f9352cd32.tar.gz frameworks_base-5f6133a100d4477dfcea919e81ff301f9352cd32.tar.bz2 |
Merge change 7833 into donut
* changes:
Fixing the random audio mangling problem (TTS becomes incomprehensibly fast)
Diffstat (limited to 'packages')
-rw-r--r-- | packages/TtsService/jni/android_tts_SynthProxy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/TtsService/jni/android_tts_SynthProxy.cpp b/packages/TtsService/jni/android_tts_SynthProxy.cpp index 80eb3cb..68e3fb7 100644 --- a/packages/TtsService/jni/android_tts_SynthProxy.cpp +++ b/packages/TtsService/jni/android_tts_SynthProxy.cpp @@ -194,6 +194,7 @@ static tts_callback_status ttsSynthDoneCB(void *& userdata, uint32_t rate, if (bufferSize > 0) { prepAudioTrack(pJniData, pForAfter->streamType, rate, format, channel); if (pJniData->mAudioOut) { + pJniData->mAudioOut->start(); pJniData->mAudioOut->write(wav, bufferSize); memset(wav, 0, bufferSize); //LOGV("AudioTrack wrote: %d bytes", bufferSize); @@ -549,7 +550,6 @@ android_tts_SynthProxy_speak(JNIEnv *env, jobject thiz, jint jniData, if (pSynthData->mAudioOut) { pSynthData->mAudioOut->stop(); - pSynthData->mAudioOut->start(); } afterSynthData_t* pForAfter = new (afterSynthData_t); |