|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
As you can read in the Sun JSAPI specifications, until the Java Sound API is finalized, the AudioManager and other audio classes and interfaces will remain as placeholders for future expansion. Only the Recognizer audio events are functional in the current release. That’s why we had to provide ourselves mechanisms to enable client application to manage the synthesized sound. So we extended the javax.speech.AudioListener interface.
| Method Summary | |
int |
getFreeSpace()
use by the synthesizer to ensure the sound capacity of the application. |
void |
write(byte[] signal,
int off,
int len)
Used by the Synthesizer to send a sound packet to the application. |
| Method Detail |
public void write(byte[] signal,
int off,
int len)
throws javax.speech.AudioException
signal - a byte array containing a sound packet.off - an offset that will be 0 in current implementation.len - the length in bytes of the signal.
javax.speech.AudioException - application could throw an AudioException when an error has occured.public int getFreeSpace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||