wavefile Class Reference

Inheritance diagram for wavefile:

frame List of all members.

Public Member Functions

 wavefile ()
unsigned long int getlocinc ()
 wavefile (char *frdata, unsigned long int frsize)
 wavefile (string wavepath)
 wavefile (wavefile &wv)
 wavefile (const wavefile &wv)
int makeMono (int type)
int makePerm (string dest)
int getFirstFrame (char *frmdata, unsigned long int *frsize)
int getNextFrame (char *frmdata, unsigned long int *frsize)
int getFrame (unsigned long int i, string framename)
vector< double > getMFCC (int *status)
int appendFrame (string fpath)
int getData (char *frmdata, unsigned long int *frsize)
int commit (void)
int showDetails ()
 ~wavefile ()
unsigned long int nFrames ()

Protected Attributes

char ChunkID [4]
unsigned long int ChunkSize
char Format [4]
char Subchunk1ID [4]
unsigned long int Subchunk1Size
unsigned short int AudioFormat
unsigned short int NumChannels
unsigned long int SampleRate
unsigned long int ByteRate
unsigned short int BlockAlign
unsigned short int BitsPerSample
char Subchunk2ID [4]
unsigned long int Subchunk2Size
char * data
string path
unsigned long int locinc
unsigned long int curloc
FILE * fptr

Constructor & Destructor Documentation

wavefile::wavefile  )  [inline]
 

Definition at line 154 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, BPS, ByteRate, ChunkID, ChunkSize, curloc, data, filemgr, Format, FRAMELENGTH, locinc, filemanager::newTempFile(), NumChannels, path, SAMPLERATE, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

wavefile::wavefile char *  frdata,
unsigned long int  frsize
[inline]
 

Definition at line 179 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, BPS, ByteRate, ChunkID, ChunkSize, curloc, data, filemgr, Format, FRAMELENGTH, locinc, filemanager::newTempFile(), NumChannels, path, SAMPLERATE, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

wavefile::wavefile string  wavepath  )  [inline]
 

Definition at line 205 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, ChunkSize, curloc, data, Format, fptr, FRAMELENGTH, locinc, NumChannels, path, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

wavefile::wavefile wavefile wv  )  [inline]
 

Definition at line 266 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, ChunkSize, curloc, data, filemgr, Format, locinc, filemanager::newTempFile(), NumChannels, path, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

wavefile::wavefile const wavefile wv  )  [inline]
 

Definition at line 291 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, ChunkSize, curloc, data, filemgr, Format, locinc, filemanager::newTempFile(), NumChannels, path, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

wavefile::~wavefile  )  [inline]
 

Definition at line 602 of file wavefile.cpp.

References filemanager::checkTempFile(), commit(), data, filemanager::delTempFile(), filemgr, and path.


Member Function Documentation

int wavefile::appendFrame string  fpath  )  [inline]
 

Definition at line 492 of file wavefile.cpp.

References ChunkSize, data, fptr, getlocinc(), Subchunk1Size, and Subchunk2Size.

Referenced by decoder::decode().

int wavefile::commit void   )  [inline]
 

Definition at line 533 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, ChunkSize, data, Format, NumChannels, path, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, and Subchunk2Size.

Referenced by makeMono(), and ~wavefile().

int wavefile::getData char *  frmdata,
unsigned long int *  frsize
[inline]
 

Definition at line 523 of file wavefile.cpp.

References data, FAILURE, Subchunk2Size, and SUCCESS.

int wavefile::getFirstFrame char *  frmdata,
unsigned long int *  frsize
[inline]
 

Definition at line 397 of file wavefile.cpp.

References curloc, data, locinc, and SUCCESS.

int wavefile::getFrame unsigned long int  i,
string  framename
[inline]
 

Definition at line 428 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, curloc, data, Format, getlocinc(), locinc, NumChannels, SampleRate, Subchunk1ID, Subchunk1Size, and Subchunk2ID.

Referenced by repositorygenerator::generate().

unsigned long int wavefile::getlocinc  )  [inline]
 

Definition at line 174 of file wavefile.cpp.

References ByteRate, and FRAMELENGTH.

Referenced by appendFrame(), getFrame(), and nFrames().

vector<double> wavefile::getMFCC int *  status  )  [inline]
 

Definition at line 473 of file wavefile.cpp.

References FAILURE, fptr, MAX_DIM, and SUCCESS.

Referenced by encoder::encode(), and repositorygenerator::generate().

int wavefile::getNextFrame char *  frmdata,
unsigned long int *  frsize
[inline]
 

Definition at line 414 of file wavefile.cpp.

References curloc, data, locinc, Subchunk2Size, and SUCCESS.

int wavefile::makeMono int  type  )  [inline]
 

Definition at line 316 of file wavefile.cpp.

References BitsPerSample, BlockAlign, ByteRate, ChunkSize, commit(), data, NumChannels, SampleRate, Subchunk1Size, and Subchunk2Size.

int wavefile::makePerm string  dest  )  [inline]
 

Definition at line 390 of file wavefile.cpp.

References filemgr, filemanager::makePerm(), and path.

Referenced by decoder::decode().

unsigned long int wavefile::nFrames  )  [inline]
 

Definition at line 613 of file wavefile.cpp.

References getlocinc(), and Subchunk2Size.

Referenced by encoder::encode().

int wavefile::showDetails  )  [inline]
 

Definition at line 577 of file wavefile.cpp.

References AudioFormat, BitsPerSample, BlockAlign, ByteRate, ChunkID, ChunkSize, curloc, Format, locinc, NumChannels, path, SampleRate, Subchunk1ID, Subchunk1Size, Subchunk2ID, Subchunk2Size, and SUCCESS.


Member Data Documentation

unsigned short int wavefile::AudioFormat [protected]
 

Definition at line 140 of file wavefile.cpp.

Referenced by commit(), getFrame(), showDetails(), and wavefile().

unsigned short int wavefile::BitsPerSample [protected]
 

Definition at line 145 of file wavefile.cpp.

Referenced by commit(), getFrame(), makeMono(), showDetails(), and wavefile().

unsigned short int wavefile::BlockAlign [protected]
 

Definition at line 144 of file wavefile.cpp.

Referenced by commit(), getFrame(), makeMono(), showDetails(), and wavefile().

unsigned long int wavefile::ByteRate [protected]
 

Definition at line 143 of file wavefile.cpp.

Referenced by commit(), getFrame(), getlocinc(), makeMono(), showDetails(), and wavefile().

char wavefile::ChunkID[4] [protected]
 

Definition at line 135 of file wavefile.cpp.

Referenced by commit(), getFrame(), showDetails(), and wavefile().

unsigned long int wavefile::ChunkSize [protected]
 

Definition at line 136 of file wavefile.cpp.

Referenced by appendFrame(), commit(), makeMono(), showDetails(), and wavefile().

unsigned long int wavefile::curloc [protected]
 

Definition at line 151 of file wavefile.cpp.

Referenced by getFirstFrame(), getFrame(), getNextFrame(), showDetails(), and wavefile().

char* wavefile::data [protected]
 

Definition at line 148 of file wavefile.cpp.

Referenced by appendFrame(), commit(), getData(), getFirstFrame(), getFrame(), getNextFrame(), makeMono(), wavefile(), and ~wavefile().

char wavefile::Format[4] [protected]
 

Definition at line 137 of file wavefile.cpp.

Referenced by commit(), getFrame(), showDetails(), and wavefile().

FILE* wavefile::fptr [protected]
 

Definition at line 152 of file wavefile.cpp.

Referenced by appendFrame(), getMFCC(), and wavefile().

unsigned long int wavefile::locinc [protected]
 

Definition at line 150 of file wavefile.cpp.

Referenced by getFirstFrame(), getFrame(), getNextFrame(), showDetails(), and wavefile().

unsigned short int wavefile::NumChannels [protected]
 

Definition at line 141 of file wavefile.cpp.

Referenced by commit(), getFrame(), makeMono(), showDetails(), and wavefile().

string wavefile::path [protected]
 

Definition at line 149 of file wavefile.cpp.

Referenced by commit(), makePerm(), showDetails(), wavefile(), and ~wavefile().

unsigned long int wavefile::SampleRate [protected]
 

Definition at line 142 of file wavefile.cpp.

Referenced by commit(), getFrame(), makeMono(), showDetails(), and wavefile().

char wavefile::Subchunk1ID[4] [protected]
 

Definition at line 138 of file wavefile.cpp.

Referenced by commit(), getFrame(), showDetails(), and wavefile().

unsigned long int wavefile::Subchunk1Size [protected]
 

Definition at line 139 of file wavefile.cpp.

Referenced by appendFrame(), commit(), getFrame(), makeMono(), showDetails(), and wavefile().

char wavefile::Subchunk2ID[4] [protected]
 

Definition at line 146 of file wavefile.cpp.

Referenced by commit(), getFrame(), showDetails(), and wavefile().

unsigned long int wavefile::Subchunk2Size [protected]
 

Definition at line 147 of file wavefile.cpp.

Referenced by appendFrame(), commit(), getData(), getNextFrame(), makeMono(), nFrames(), showDetails(), and wavefile().


The documentation for this class was generated from the following file:
Best viewed on Get Firefox!. Generated on Mon Mar 28 22:09:09 2005 for VoX by  doxygen 1.4.2 . This project hosted by SourceForge.net Logo .