H323_ALawCodec Class Reference

#include <codecs.h>

Inheritance diagram for H323_ALawCodec:

H323StreamedAudioCodec H323FramedAudioCodec H323AudioCodec H323Codec List of all members.

Public Member Functions

virtual int Encode (short sample) const
virtual short Decode (int sample) const

Static Public Member Functions

static int EncodeSample (short sample)
static short DecodeSample (int sample)

Protected Attributes

BOOL sevenBit

Detailed Description

This class is a G711 ALaw codec.


Constructor & Destructor Documentation

H323_ALawCodec::H323_ALawCodec ( Direction  direction,
BOOL  at56kbps,
unsigned  frameSize 
)

Create a new G.711 codec for ALaw.

Parameters:
direction  Direction in which this instance runs
at56kbps  Encoding bit rate.
frameSize  Size of frame in bytes

H323_ALawCodec::H323_ALawCodec ( Direction  direction,
BOOL  at56kbps,
unsigned  frameSize 
)

Create a new G.711 codec for ALaw.

Parameters:
direction  Direction in which this instance runs
at56kbps  Encoding bit rate.
frameSize  Size of frame in bytes


Member Function Documentation

virtual int H323_ALawCodec::Encode ( short  sample  )  const [inline, virtual]

Encode a single sample value.

Implements H323StreamedAudioCodec.

virtual short H323_ALawCodec::Decode ( int  sample  )  const [inline, virtual]

Decode a single sample value.

Implements H323StreamedAudioCodec.

static int H323_ALawCodec::EncodeSample ( short  sample  )  [static]

static short H323_ALawCodec::DecodeSample ( int  sample  )  [static]


Member Data Documentation

BOOL H323_ALawCodec::sevenBit [protected]


The documentation for this class was generated from the following file:
Generated on Tue May 8 19:55:46 2007 for OpenH323 by  doxygen 1.5.1