org.tritonus.lowlevel.esd
Class EsdRecordingStream
java.lang.Object
org.tritonus.lowlevel.esd.Esd
org.tritonus.lowlevel.esd.EsdRecordingStream
- public class EsdRecordingStream
- extends Esd
Method Summary |
void |
close()
Closes the connection to esd. |
void |
open(int nFormat,
int nSampleRate)
Opens the connection to esd and initiates a stream. |
int |
read(byte[] abData,
int nOffset,
int nLength)
Reads a block of data to esd. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EsdRecordingStream
public EsdRecordingStream()
open
public void open(int nFormat,
int nSampleRate)
- Opens the connection to esd and initiates a stream.
read
public int read(byte[] abData,
int nOffset,
int nLength)
- Reads a block of data to esd.
Before using this method, you have to open a connection
to esd with open(). After being done, call close() to
release native and server-side resources.
- Returns:
- the number of bytes read
close
public void close()
- Closes the connection to esd.
With this call, all resources inside esd associated with
this stream are freed.???
Calls to the read() method are no longer allowed after
return from this call.