rtspserver
Class RtspFileWav


class RtspFileWav
derived from RtspFile

Child class for *.wav file type. Uses libsndfile to read wav header and audio data.


Constructor Summary
RtspFileWav(const string & shortFilename)
          constructor

Destructor Summary
 virtual ~RtspFileWav()
          deconstructor

Method Summary
 virtual boolclose()
          see parent class for more info
 const stringfileExtensionString()
          see parent class for more info
 virtual boolloadHeader(int * ftIndex, int * lengthInMs)
          see parent class for more info
 virtual boolopen(bool bReadWrite, int ftIndex)
          see parent class for more info
 virtual intread(void * data, int max, unsigned short * pSeqNum, unsigned int * pTS)
          see parent class for more info, pSeqNum and pTS not used
 virtual boolsaveHeader(const int ftIndex, RtspSdp & rtspSdp)
          see parent class for more info, rtspSdp isn't used here
 virtual longseek(const long samples, const int whence)
          see parent class for more info
 virtual intwrite(void * data, int max, unsigned short uSeqNum, unsigned int uTS)
          see parent class for more info, pSeqNum and pTS not used

Methods inherited from class rtspserver.RtspFile
appendSdpFile, deleteLineSdpFile, filename, localFilename, readSdpFile, shortFilename, writeSdpFile

Constructor Detail

RtspFileWav

public RtspFileWav(const string & shortFilename)
constructor
Parameters:
shortFilename - rtsp based filename of audio file
Method Detail

~RtspFileWav

public virtual ~RtspFileWav()
deconstructor
Method Detail

close

public virtual bool close()
see parent class for more info

fileExtensionString

public const string fileExtensionString()
see parent class for more info

loadHeader

public virtual bool loadHeader(int * ftIndex, int * lengthInMs)
see parent class for more info

open

public virtual bool open(bool bReadWrite, int ftIndex)
see parent class for more info

read

public virtual int read(void * data, int max, unsigned short * pSeqNum, unsigned int * pTS)
see parent class for more info, pSeqNum and pTS not used

saveHeader

public virtual bool saveHeader(const int ftIndex, RtspSdp & rtspSdp)
see parent class for more info, rtspSdp isn't used here

seek

public virtual long seek(const long samples, const int whence)
see parent class for more info

write

public virtual int write(void * data, int max, unsigned short uSeqNum, unsigned int uTS)
see parent class for more info, pSeqNum and pTS not used