sipXcallLib home page


Public Types | Public Member Functions | Private Attributes | List of all members
PtAudioCodec Class Reference

#include <PtAudioCodec.h>

Public Types

enum  PtRtpAudioCodecType { UNKNOWN_CODEC, MU_LAW_8B_8K, A_LAW_8B_8K, LINEAR_16B_8K }
 
enum  PtRtpAudioEncodingMethod { UNKNOWN_ENCODING, MU_LAW, A_LAW, LINEAR }
 enumcode: UNKNOWN_CODEC - undefined encoding parameters. enumcode: MU_LAW_8B_8K - mu-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: A_LAW_8B_8K - a-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: LINEAR_16B_8K - PCM/linear encoding, 16 bit samples, 8 kilohertz sample rate, one channel More...
 

Public Member Functions

 PtAudioCodec (PtRtpAudioCodecType codecType=UNKNOWN_CODEC)
 enumcode: UNKNOWN_ENCODING - undefined encoding method. enumcode: MU_LAW - mu-law encoding enumcode: A_LAW - a-law encoding enumcode: LINEAR - PCM/linear encoding More...
 
 PtAudioCodec (const PtAudioCodec &rPtAudioCodec)
 
virtual ~PtAudioCodec ()
 
PtAudioCodecoperator= (const PtAudioCodec &rhs)
 
PtRtpAudioCodecType getRtpCodecType () const
 
PtRtpAudioEncodingMethod getRtpEncodingMethod () const
 returns: The codec type enumeration. More...
 
int getSampleSize () const
 returns: the enumeration for the encoding method for this codec. More...
 
int getSampleRate () const
 returns: The number of bits per sample More...
 
int getNumChannels () const
 returns: The number of samples per second. More...
 

Private Attributes

PtRtpAudioCodecType mCodecType
 returns: The number of channels. More...
 
PtRtpAudioEncodingMethod mAudioEncodingMethod
 
int mSampleSize
 
int mSampleRate
 
int mNumberOfChannels
 

Member Enumeration Documentation

Enumerator
UNKNOWN_CODEC 
MU_LAW_8B_8K 
A_LAW_8B_8K 
LINEAR_16B_8K 

enumcode: UNKNOWN_CODEC - undefined encoding parameters. enumcode: MU_LAW_8B_8K - mu-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: A_LAW_8B_8K - a-law encoding, 8 bit samples, 8 kilohertz sample rate, one channel enumcode: LINEAR_16B_8K - PCM/linear encoding, 16 bit samples, 8 kilohertz sample rate, one channel

Enumerator
UNKNOWN_ENCODING 
MU_LAW 
A_LAW 
LINEAR 

Constructor & Destructor Documentation

enumcode: UNKNOWN_ENCODING - undefined encoding method. enumcode: MU_LAW - mu-law encoding enumcode: A_LAW - a-law encoding enumcode: LINEAR - PCM/linear encoding

PtAudioCodec ( const PtAudioCodec rPtAudioCodec)
~PtAudioCodec ( )
virtual

Member Function Documentation

int getNumChannels ( ) const

returns: The number of samples per second.

PtAudioCodec::PtRtpAudioCodecType getRtpCodecType ( ) const
PtAudioCodec::PtRtpAudioEncodingMethod getRtpEncodingMethod ( ) const

returns: The codec type enumeration.

int getSampleRate ( ) const

returns: The number of bits per sample

int getSampleSize ( ) const

returns: the enumeration for the encoding method for this codec.

PtAudioCodec & operator= ( const PtAudioCodec rhs)

Member Data Documentation

PtRtpAudioEncodingMethod mAudioEncodingMethod
private
PtRtpAudioCodecType mCodecType
private

returns: The number of channels.

int mNumberOfChannels
private
int mSampleRate
private
int mSampleSize
private