Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

RTPAVProfileSampleBasedAudioReceiver Class Reference

#include <RTPAVProfileSampleBasedAudioReceiver.h>

Inheritance diagram for RTPAVProfileSampleBasedAudioReceiver:

RTPPayloadReceiver RTPAVProfilePayload10Receiver List of all members.

Protected Member Functions

virtual void processPacket (RTPPacket *packet)
virtual void openOutputFile (const char *fileName)
virtual void closeOutputFile ()
virtual void insertSilence (simtime_t duration)

Protected Attributes

AFfilehandle _audioFile
AFfilesetup _fileSetup
int _samplingRate
int _sampleWidth
int _numberOfChannels

Member Function Documentation

void RTPAVProfileSampleBasedAudioReceiver::closeOutputFile  )  [protected, virtual]
 

Closes the output file stream.

Reimplemented from RTPPayloadReceiver.

void RTPAVProfileSampleBasedAudioReceiver::insertSilence simtime_t  duration  )  [protected, virtual]
 

When packets arrival late or have been lost, this method can be called to insert a silence period. It must be overwritten because in different audio formats different values for silence exist.

Reimplemented in RTPAVProfilePayload10Receiver.

void RTPAVProfileSampleBasedAudioReceiver::openOutputFile const char *  fileName  )  [protected, virtual]
 

This method is called by initialize and opens the output file stream. For most payload receivers this method works well, only when using a library for a payload type which provides an own open method it must be overwritten.

Reimplemented from RTPPayloadReceiver.

void RTPAVProfileSampleBasedAudioReceiver::processPacket RTPPacket packet  )  [protected, virtual]
 

Writes contents of this RTPPacket into the output file. Must be overwritten by subclasses.

Reimplemented from RTPPayloadReceiver.


Member Data Documentation

AFfilehandle RTPAVProfileSampleBasedAudioReceiver::_audioFile [protected]
 

AFfilesetup RTPAVProfileSampleBasedAudioReceiver::_fileSetup [protected]
 

int RTPAVProfileSampleBasedAudioReceiver::_numberOfChannels [protected]
 

int RTPAVProfileSampleBasedAudioReceiver::_sampleWidth [protected]
 

int RTPAVProfileSampleBasedAudioReceiver::_samplingRate [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 12 12:20:21 2006 for RTP model for OMNeT++ by  doxygen 1.4.2