com.sun.speech.freetts.audio.AudioPlayer.drainWorksProperly;
to true
. If the workaround is enabled, the line.isActive method will be performed periodically. The period of the test can be controlled with:
com.sun.speech.freetts.audio.AudioPlayer.drainDelay"
The default if 5ms.
The property com.sun.speech.freetts.audio.AudioPlayer.bufferSize"
Controls the audio buffer size, it defaults to 8192
Even with this drain work around, there are some issues with this class. The workaround drain is not completely reliable. A resume
following a pause
does not always continue at the proper position in the audio. On a rare occasion, sound output will be repeated a number of times. This may be related to bug 4421330 in the Bug Parade database.
|
|