#include <RTPAVProfileSampleBasedAudioSender.h>
Inheritance diagram for RTPAVProfileSampleBasedAudioSender:
Protected Member Functions | |
virtual void | initializeSenderModule (RTPInnerPacket *) |
virtual void | openSourceFile (const char *fileName) |
virtual void | closeSourceFile () |
virtual void | play () |
virtual void | stop () |
virtual void | seekTime (simtime_t moment) |
virtual void | seekByte (int position) |
virtual bool | sendPacket () |
Protected Attributes | |
AFfilehandle | _audioFile |
simtime_t | _startTime |
int | _samplingRate |
int | _sampleWidth |
int | _numberOfChannels |
|
This method is called by the destructor and closes the data file. Reimplemented from RTPPayloadSender. |
|
Called when this sender module receives a message initializeSenderModule. Reimplemented from RTPPayloadSender. |
|
This method is called by initializeSenderModule and opens the source data file as an inputFileStream stored in member variable _inputFileStream. Most data formats can use this method directly, but when using a library for a certain data format which offers an own open routine this method must be overwritten. Reimplemented from RTPPayloadSender. |
|
Starts data transmission. Every sender module must implement this method. Reimplemented from RTPPayloadSender. |
|
When the data transmission is paused the current position is changed to this byte position (excluding file header). Implementation in sender modules is optional. Reimplemented from RTPPayloadSender. |
|
When the data transmission is paused the current position is changed to this time (relative to start of file). Implementation in sender modules is optional. Reimplemented from RTPPayloadSender. |
|
This method gets called when one (or more) rtp data packets have to be sent. Subclasses must overwrite this method to do something useful. This implementation doesn't send packets it just returns false which means end of file reached. Reimplemented from RTPPayloadSender. |
|
This method stop data transmission and resets the sender module so that a following PLAY command would start the transmission at the beginning again. Every sender module should implement this method. Reimplemented from RTPPayloadSender. |
|
File handle for the audio file. |
|
The number of different audio channels. Must be set by subclasses in initialize(). |
|
The width of a sample of one channel in bits. Possibly values are 8, 16 and 24. Must be set by subclasses in initialize(). |
|
The sampling rate of the audio. Must be set by subclasses in initialize(). |
|
The time this sender module got initialized. Used to calculate time stamps. |