Remove useless start of AudioTrack for TTS and improper volume setting.

The AudioTrack that plays the synthesized audio data should only be
started when the first synthesis request is sent, not after the
initialization of the engine.
The track volume should be initialized to it nominal level. Volumes
above 1 do not provide amplification, so setting the volume to 2 is
not necessary.
This commit is contained in:
Jean-Michel Trivi
2010-01-08 14:06:21 -08:00
parent 923432d5ca
commit ddc63ad04b

View File

@ -230,9 +230,8 @@ class SynthProxyJniStorage {
mAudioOut = NULL;
} else {
//LOGI("AudioTrack OK");
mAudioOut->setVolume(2.0f, 2.0f);
mAudioOut->start();
LOGV("AudioTrack started");
mAudioOut->setVolume(1.0f, 1.0f);
LOGV("AudioTrack ready");
}
}
};