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() |
protected void |
finalize()
This method (when overriden), will be called when the VM determines that the Object can be
garbage collected.
|
long |
getFramePosition() |
int |
getFrameSize() |
int |
getVolume() |
void |
pause() |
void |
reset() |
void |
resume() |
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.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 setVolume(int left, int right) throws IOException
IOException
public void close() throws IOException
IOException
public long getFramePosition() throws IOException
IOException
protected void finalize()
Object
The finalize() method of a Class is only called if it overrides finalize() - the finalize() method java.lang.Object is never called by the Eve VM.
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 sync() throws IOException
IOException
public void drain() throws IOException, InterruptedException
IOException
InterruptedException
public int getVolume() throws IOException
IOException