|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.speech4j.sound.AudioOutputFile
AudioOutput to a file. This is a preferable class for handling big amounts of audio data (for example CD creation)
| Constructor Summary | |
AudioOutputFile(java.lang.String fileName,
javax.sound.sampled.AudioFormat format)
Creates AudioOutputFile |
|
| Method Summary | |
void |
close()
Closes output |
long |
length()
Returns size of output. |
double |
time()
Returns time length of output. |
void |
write(AudioBuffer buffer)
Writes AudioBuffer performing format conversion if necessary. |
void |
write(javax.sound.sampled.AudioInputStream ais,
int cnt)
Writes cnt bytes from AudioInputStream performing format conversion if necessary. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AudioOutputFile(java.lang.String fileName,
javax.sound.sampled.AudioFormat format)
throws java.io.FileNotFoundException,
java.io.IOException
fileName - File nameformat - AudioFormat
java.io.FileNotFoundException
java.io.IOException| Method Detail |
public void write(AudioBuffer buffer)
throws java.io.IOException,
SoundException
write in interface AudioOutputbuffer - Audio buffer
java.io.IOException
SoundException
public void write(javax.sound.sampled.AudioInputStream ais,
int cnt)
throws java.io.IOException,
SoundException
write in interface AudioOutputais - AudioInputStreamcnt - number of bytes to write
java.io.IOException
SoundException
public void close()
throws java.io.IOException
close in interface AudioOutputjava.io.IOException
public long length()
throws java.io.IOException
length in interface AudioOutputjava.io.IOException
public double time()
throws java.io.IOException
time in interface AudioOutputjava.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||