com.vwp.sound.mod.sound.output
Interface Output

All Known Implementing Classes:
JavaSoundOutput, WavOutput

public interface Output


Field Summary
static int INPUT_RATE
          the assumed sampeling rate of the input to write(byte[], int, int)
 
Method Summary
 boolean close()
          closes the output plugin
 boolean isOpen()
          tests if an output plugin is open for writeing
 boolean open()
          opens the output plugin for writing
 int write(byte[] data, int ofs, int len)
          try to write len bytes from offset ofs from the array data.
 

Field Detail

INPUT_RATE

static final int INPUT_RATE
the assumed sampeling rate of the input to write(byte[], int, int)

See Also:
Constant Field Values
Method Detail

isOpen

boolean isOpen()
tests if an output plugin is open for writeing

Returns:
true if the Output is open, false else

open

boolean open()
opens the output plugin for writing

Returns:
true if the plugin was successfully opened, false else

close

boolean close()
closes the output plugin

Returns:
true if the plugin was successfully closed, false else

write

int write(byte[] data,
          int ofs,
          int len)
          throws java.io.IOException
try to write len bytes from offset ofs from the array data.

Parameters:
data - the array containing data to write
ofs - the offset in data to write from
len - the number of samples to write
Returns:
the number of samples actually written
Throws:
java.io.IOException