Methods Summary |
---|
public int | bufferAvailable()Obtains the number of bytes of data that can be written to
the device without blocking.
|
public void | dispose()Close the device.
Cannot call this close since it clashes InputStream.close
for SunAudioOutput which also implements InputStream.
|
public void | drain()Drain the device.
|
public void | flush()Flush the device.
|
public double | getGain()Return the audio gain of the device.
|
public long | getMediaNanoseconds()Return the time as measured from the samples consumed since the
device has opened.
|
public boolean | getMute()Return if the device is muted.
|
public float | getRate()get the playback rate.
|
public boolean | initialize(javax.media.format.AudioFormat format, int bufferSize)Initialize the audio output.
|
public void | pause()Pause the device.
|
public void | resume()Resume the device.
|
public void | setGain(double g)Set the audio gain of the device.
|
public void | setMute(boolean m)Mute the audio device.
|
public float | setRate(float rate)set the playback rate.
|
public int | write(byte[] data, int off, int len)Write data to the device.
|