VoicePDU - The PDU that carries voice payload. More...
Public Member Functions | |
VoicePDU (CallContext c, int subClass) | |
The constructor for outbound Voice PDUs. | |
VoicePDU (CallContext c, byte[] pduOctets) | |
The constructor for inbound Voice PDUs. | |
Static Public Attributes | |
static final int | LIN16 = 0x01 |
Voice PDU Subclass: 16-bit linear little-endian. | |
static final int | ALAW = 0x02 |
Voice PDU Subclass: G.711 a-Law. | |
static final int | ULAW = 0x03 |
Voice PDU Subclass: G.711 u-Law. | |
Protected Member Functions | |
void | log (String prefix) |
Logs this frame. | |
Package Functions | |
void | onArrivedPDU () |
Handles arrived PDUs: writes those to audio buffer. |
VoicePDU - The PDU that carries voice payload.
Definition at line 9 of file VoicePDU.java.
protocol.VoicePDU.VoicePDU | ( | CallContext | c, |
int | subClass | ||
) |
The constructor for outbound Voice PDUs.
Definition at line 29 of file VoicePDU.java.
References protocol.ProtocolDataUnit.pduSubclass, protocol.ProtocolDataUnit.pduType, and protocol.ProtocolDataUnit.VOICE.
{ super( c ); this.pduType = ProtocolDataUnit.VOICE; this.pduSubclass = subClass; }
protocol.VoicePDU.VoicePDU | ( | CallContext | c, |
byte[] | pduOctets | ||
) |
The constructor for inbound Voice PDUs.
Definition at line 39 of file VoicePDU.java.
{ super( c, pduOctets ); }
void protocol.VoicePDU.log | ( | String | prefix ) | [protected] |
Logs this frame.
Reimplemented from protocol.ProtocolDataUnit.
Definition at line 47 of file VoicePDU.java.
{
super.log( prefix + " voice frame" );
}
void protocol.VoicePDU.onArrivedPDU | ( | ) | [package] |
Handles arrived PDUs: writes those to audio buffer.
Reimplemented from protocol.ProtocolDataUnit.
Definition at line 56 of file VoicePDU.java.
References protocol.ProtocolDataUnit.call, protocol.ProtocolDataUnit.dump(), utils.OctetBuffer.get(), protocol.CallContext.getAudioSampleSize(), protocol.ProtocolDataUnit.getTimestamp(), protocol.CallContext.onReceivedVoicePDU(), and protocol.ProtocolDataUnit.payload.
final int protocol.VoicePDU.ALAW = 0x02 [static] |
Voice PDU Subclass: G.711 a-Law.
Definition at line 19 of file VoicePDU.java.
Referenced by CryptoPhoneApp.acceptIncomingCall(), CryptoPhoneApp.deferredOnAccept(), and audio.AudioInterfacePCM.getByFormat().
final int protocol.VoicePDU.LIN16 = 0x01 [static] |
Voice PDU Subclass: 16-bit linear little-endian.
Definition at line 14 of file VoicePDU.java.
Referenced by audio.AudioInterfacePCM.getByFormat().
final int protocol.VoicePDU.ULAW = 0x03 [static] |
Voice PDU Subclass: G.711 u-Law.
Definition at line 24 of file VoicePDU.java.
Referenced by audio.AudioInterfacePCM.getByFormat().