|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cnrg.itx.gtwy.PlayDestination
The user-defined destination of voice data packets from the computer network to the gateway.
PlayChannel
,
Destination
Field Summary | |
private int |
bytesWritten
The number of bytes written to the buffer. |
private int |
iNumPackets
The number of packets written. |
private boolean |
isMute
true if the destination has to be muted; false otherwise. |
private boolean |
isOpen
true if destination is open for receiving packets; false otherwise. |
private Line |
myLine
The Line instance related to the destination. |
Constructor Summary | |
PlayDestination(Line l)
|
Method Summary | |
(package private) static void |
|
void |
close()
Used to close the destination to receiving voice packets. |
Line |
getLine()
|
cnrg.itx.datax.PropertiesCollection |
getProperties()
The Gateway is not concerned about properties. |
cnrg.itx.datax.Stats |
getStatistics()
|
boolean |
mute(boolean mode)
Used to mute the voice data sent to the destination. |
void |
setPeerProperties(cnrg.itx.datax.PropertiesCollection pc)
The Gateway does not set peer properties. |
void |
setProperties(cnrg.itx.datax.PropertiesCollection pc)
No properties are set. |
void |
write(byte[] data)
Writes voice data to a specified buffer on the gateway. |
private void |
writeToPlay(int lineNumber,
byte[] data)
Writes voice data from computer to buffers in native code. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
Field Detail |
private Line myLine
private boolean isOpen
private boolean isMute
private int bytesWritten
private int iNumPackets
Constructor Detail |
public PlayDestination(Line l)
l
- the Line
instance related to PlayDestination
.Line
Method Detail |
static void()
public Line getLine()
Line
instance for PlayDestination
Line
public void close()
public boolean mute(boolean mode)
mode
- true if the destination has to be muted; false otherwise.public void write(byte[] data) throws cnrg.itx.datax.DataException
data
- the voice data.public cnrg.itx.datax.PropertiesCollection getProperties() throws cnrg.itx.datax.DataException
public void setProperties(cnrg.itx.datax.PropertiesCollection pc) throws cnrg.itx.datax.DataException
public void setPeerProperties(cnrg.itx.datax.PropertiesCollection pc) throws cnrg.itx.datax.DataException
public cnrg.itx.datax.Stats getStatistics()
private void writeToPlay(int lineNumber, byte[] data)
playPacket
plays out the
data in the buffers.lineNumber
- the line's designated number.data
- the data being sent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |