|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprotocol.ProtocolDataUnit
protocol.VoicePDU
public class VoicePDU
VoicePDU - The PDU that carries voice payload.
Field Summary | |
---|---|
static int |
ALAW
Voice PDU Subclass: G.711 a-Law |
static int |
LIN16
Voice PDU Subclass: 16-bit linear little-endian |
static int |
ULAW
Voice PDU Subclass: G.711 u-Law |
Fields inherited from class protocol.ProtocolDataUnit |
---|
call, destinationCallNumber, inSeqNo, outSeqNo, payload, pduSubclass, pduType, sourceCallNumber, timeStamp, VOICE |
Constructor Summary | |
---|---|
VoicePDU(CallContext c,
byte[] pduOctets)
The constructor for inbound Voice PDUs. |
|
VoicePDU(CallContext c,
int subClass)
The constructor for outbound Voice PDUs. |
Method Summary | |
---|---|
protected void |
log(java.lang.String prefix)
Logs this frame. |
(package private) void |
onArrivedPDU()
Handles arrived PDUs: writes those to audio buffer. |
Methods inherited from class protocol.ProtocolDataUnit |
---|
create, dump, getTimestamp, sendPayload, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int LIN16
public static final int ALAW
public static final int ULAW
Constructor Detail |
---|
public VoicePDU(CallContext c, int subClass)
public VoicePDU(CallContext c, byte[] pduOctets)
Method Detail |
---|
protected void log(java.lang.String prefix)
log
in class ProtocolDataUnit
prefix
- Text to includevoid onArrivedPDU()
onArrivedPDU
in class ProtocolDataUnit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |