public class WaveOutput extends Object
Constructor and Description |
---|
WaveOutput(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() |
void |
drain() |
boolean |
drained() |
long |
getFramePosition() |
int |
getFrameSize() |
long |
getMicrosecondPosition() |
int |
getVolume() |
void |
pause() |
void |
reset() |
void |
resume() |
void |
setPitch(int pitch) |
void |
setPlaybackRate(int rate) |
void |
setVolume(int left,
int right) |
void |
sync() |
int |
writeBlock(byte[] data,
int offset,
int length,
boolean isLastData) |
public WaveOutput(WaveFormat format) throws IOException
format
- the format of the Wave output.pars
- optional parameters for the WaveOutput stream.IOException
- if it could not be created.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 writeBlock(byte[] data, int offset, int length, boolean isLastData) throws IOException
IOException
public int getFrameSize() throws IOException
IOException
public int available() throws IOException
IOException
public boolean drained() throws IOException
IOException
public void drain() throws IOException, InterruptedException
IOException
InterruptedException
public void sync() throws IOException
IOException
public int getVolume() throws IOException
IOException
public void setVolume(int left, int right) throws IOException
IOException