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
IOException
public int getFrameSize() throws IOException
IOException
public int available() throws IOException
IOException
public boolean drained() throws IOException
IOException
public void reset() throws IOException
IOException
public void pause() throws IOException
IOException
public void resume() throws IOException
IOException
public void setPitch(int pitch) throws IOException
IOException
public void setPlaybackRate(int rate) throws IOException
IOException
public long getFramePosition() throws IOException
IOException
public long getMicrosecondPosition() throws IOException
IOException
public void close() throws IOException
IOException
public int getVolume() throws IOException
IOException
public void setVolume(int left, int right) throws IOException
IOException