am 5f6133a1: Merge change 7833 into donut
Merge commit '5f6133a100d4477dfcea919e81ff301f9352cd32' * commit '5f6133a100d4477dfcea919e81ff301f9352cd32': Fixing the random audio mangling problem (TTS becomes incomprehensibly fast)
This commit is contained in:
committed by
Android Git Automerger
commit
115d23a86f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user