public class WaveInput extends Object
| Constructor and Description |
|---|
WaveInput(WaveFormat format)
Create a new WaveOutput to output the specified wave format with the
specified stream parameters.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
drained() |
long |
getFramePosition() |
int |
getFrameSize() |
long |
getMicrosecondPosition() |
int |
getVolume() |
void |
pause() |
int |
readBlock(byte[] dest,
int offset,
int length) |
void |
reset() |
void |
resume() |
void |
setPitch(int pitch) |
void |
setPlaybackRate(int rate) |
void |
setVolume(int left,
int right) |
public WaveInput(WaveFormat format) throws IOException
format - the format of the Wave output.IOException - if it could not be created.public int readBlock(byte[] dest,
int offset,
int length)
throws IOException
IOExceptionpublic int getFrameSize()
throws IOException
IOExceptionpublic int available()
throws IOException
IOExceptionpublic boolean drained()
throws IOException
IOExceptionpublic void reset()
throws IOException
IOExceptionpublic void pause()
throws IOException
IOExceptionpublic void resume()
throws IOException
IOExceptionpublic void setPitch(int pitch)
throws IOException
IOExceptionpublic void setPlaybackRate(int rate)
throws IOException
IOExceptionpublic long getFramePosition()
throws IOException
IOExceptionpublic long getMicrosecondPosition()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic int getVolume()
throws IOException
IOExceptionpublic void setVolume(int left,
int right)
throws IOException
IOException