AmAudioFormat Class Reference

Audio format structure. Holds a description of the format. More...

#include <AmAudio.h>

Inheritance diagram for AmAudioFormat:

AmAudioFileFormat AmAudioRtpFormat AmAudioSimpleFormat

Public Member Functions

amci_codec_t * getCodec ()
long getHCodec ()
long getHCodecNoInit ()
bool operator== (const AmAudioFormat &r) const
bool operator!= (const AmAudioFormat &r) const

Data Fields

int sample
int channels
int rate
int frame_length
int frame_size
int frame_encoded_size
string sdp_format_parameters

Protected Member Functions

virtual int getCodecId ()=0
void destroyCodec ()
void initCodec ()

Protected Attributes

amci_codec_t * codec
long h_codec

Detailed Description

Audio format structure. Holds a description of the format.


Member Function Documentation

void AmAudioFormat::destroyCodec (  )  [protected]

Calls amci_codec_t::destroy()

amci_codec_t * AmAudioFormat::getCodec (  ) 

Returns:
The format's codec pointer.

long AmAudioFormat::getHCodec (  ) 

Returns:
Handler returned by the codec's init function.

void AmAudioFormat::initCodec (  )  [protected]

Calls amci_codec_t::init()

bool AmAudioFormat::operator!= ( const AmAudioFormat r  )  const

Returns:
false if same format.

bool AmAudioFormat::operator== ( const AmAudioFormat r  )  const

Returns:
true if same format.


Field Documentation

Number of channels.

amci_codec_t* AmAudioFormat::codec [protected]

==0 if not yet initialized.

long AmAudioFormat::h_codec [protected]

==0 if not yet initialized.

Sampling rate.

Sampling size (in bytes).


The documentation for this class was generated from the following files:
Generated on Thu Mar 8 00:12:45 2007 for Sems by  doxygen 1.4.7
Home |  Recent changes |  Search |  Glossary |  Sitemap |  Login