| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base class for all the file types ( *.au, *.wav, *.raw, *.rtp ). Handles reading and writing to audio file and audio header.
Constructor Summary | |
RtspFile(const string & shortFilename) constructor |
Destructor Summary | |
virtual | ~RtspFile() deconstructor |
Method Summary | |
bool | appendSdpFile(const char * data, const int len) Append data to *.sdp file. |
abstract bool | close() Close audio file and updates audio header. |
bool | deleteLineSdpFile(const char * data) Delete line from *.sdp file. |
abstract const string | fileExtensionString() File extension string. |
const Data | filename() Filename string. |
abstract bool | loadHeader(int * ftIndex, int * lengthInMs) Load audio header codec information. |
const Data | localFilename() Local filename string. |
abstract bool | open(bool bReadWrite, int ftIndex) Opens audio file for reading or writing. |
abstract int | read(void * data, int max, unsigned short * pSeqNum, unsigned int * pTS) Read from audio file. |
bool | readSdpFile(RtspSdp & rtspSdp) Reads rtspSdp from *.sdp file. |
abstract bool | saveHeader(const int ftIndex, RtspSdp & rtspSdp) Save sdp block into audio header. |
abstract long | seek(const long seekToMs, const int whence) Seek read/write pointer into file. |
const string & | shortFilename() Filename sting only. |
abstract int | write(void * data, int max, unsigned short uSeqNum, unsigned int uTS) Write to audio file. |
bool | writeSdpFile(RtspSdp & rtspSdp) Writes rtspSdp to *.sdp file. |
Constructor Detail |
public RtspFile(const string & shortFilename)
Method Detail |
public virtual ~RtspFile()
Method Detail |
public bool appendSdpFile(const char * data, const int len)
public abstract bool close()
public bool deleteLineSdpFile(const char * data)
public abstract const string fileExtensionString()
public const Data filename()
public abstract bool loadHeader(int * ftIndex, int * lengthInMs)
public const Data localFilename()
public abstract bool open(bool bReadWrite, int ftIndex)
true
for write;
false
for readingpublic abstract int read(void * data, int max, unsigned short * pSeqNum, unsigned int * pTS)
public bool readSdpFile(RtspSdp & rtspSdp)
public abstract bool saveHeader(const int ftIndex, RtspSdp & rtspSdp)
ftIndex
or
rtspSdp
to determine correct header to write.
Overwrite any existing header information.public abstract long seek(const long seekToMs, const int whence)
SEEK_SET
|SEEK_CUR
]public const string & shortFilename()
public abstract int write(void * data, int max, unsigned short uSeqNum, unsigned int uTS)
public bool writeSdpFile(RtspSdp & rtspSdp)
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |