public class AudioDestination extends Object
| Constructor and Description |
|---|
AudioDestination(boolean isInRam)
Create an AudioDestination to which the audio data can be written.
|
| Modifier and Type | Method and Description |
|---|---|
AudioInputStream |
convertToAudioInputStream()
Convert the audio data into an AudioInputStream of the proper AudioFormat.
|
AudioInputStream |
convertToAudioInputStream(AudioFormat audioFormat)
Convert the audio data into an AudioInputStream of the proper AudioFormat.
|
boolean |
isFile() |
boolean |
isInRam() |
static void |
plot(double[] x) |
static void |
plot(double[] x,
boolean bAutoClose) |
static void |
plot(double[] x,
boolean bAutoClose,
int milliSecondsToClose) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
public AudioDestination(boolean isInRam)
throws IOException
isInRam - whether to hold the data in RAM or write it into a file. The calling code is responsible for administering this
AudioDestination.IOException - if the underlying OutputStream could not be created.public boolean isInRam()
public boolean isFile()
public void write(byte[] b)
throws IOException
IOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
IOExceptionpublic AudioInputStream convertToAudioInputStream(AudioFormat audioFormat) throws IOException
audioFormat - the format of the audio data.IOException - if a problem occurred with the temporary file (only applies when using files as temporary storage).public AudioInputStream convertToAudioInputStream() throws IOException, UnsupportedAudioFileException
IOException - if a problem occurred with the temporary file (only applies when using files as temporary storage).UnsupportedAudioFileException - UnsupportedAudioFileExceptionpublic static void plot(double[] x)
public static void plot(double[] x,
boolean bAutoClose)
public static void plot(double[] x,
boolean bAutoClose,
int milliSecondsToClose)
Copyright © 2000–2016 DFKI GmbH. All rights reserved.