|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavaclient.PlayerDevice
javaclient.WaveformInterface
public class WaveformInterface
The waveform interface is used to receive arbitrary digital samples, say from a digital audio device.
Field Summary | |
---|---|
static short |
PLAYER_WAVEFORM_DATA_MAX
4K - half the packet max |
Fields inherited from class javaclient.PlayerDevice |
---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
Constructor Summary | |
---|---|
WaveformInterface(PlayerClient pc,
short indexOfDevice)
Constructor for WaveformInterface. |
Method Summary | |
---|---|
byte[] |
getData()
Returns the data array |
int |
getDepth()
Returns the current depth in bits per sample. |
int |
getRate()
Returns the current bit rate in bits per second. |
int |
getSamples()
Returns the number of samples. |
void |
readData()
The waveform interface reads a digitized waveform from the target device. |
Methods inherited from class javaclient.PlayerDevice |
---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readHeader, sendHeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short PLAYER_WAVEFORM_DATA_MAX
Constructor Detail |
---|
public WaveformInterface(PlayerClient pc, short indexOfDevice)
pc
- a reference to the PlayerClient objectindexOfDevice
- the index of the deviceMethod Detail |
---|
public void readData()
readData
in class PlayerDevice
public int getRate()
public int getDepth()
public int getSamples()
public byte[] getData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |