wavfile Class Reference

#include <wavfile.h>

List of all members.


Detailed Description

Definition at line 33 of file wavfile.h.


Public Member Functions

 wavfile ()
 ~wavfile ()
bool load (const char *Filename)
void load (short *data, int samples, int bitsPerSample=16, int AudioFormat=1, int nChan=1, int SampleRate=8000)
void print ()
bool saveToFile (const char *Filename)
short * getData ()
int samples ()

Private Member Functions

void transcodeTo8K ()

Private Attributes

bool loaded
wavstruct w
char * audio

Constructor & Destructor Documentation

wavfile::wavfile (  ) 

Definition at line 22 of file wavfile.cpp.

wavfile::~wavfile (  ) 

Definition at line 28 of file wavfile.cpp.


Member Function Documentation

bool wavfile::load ( const char *  Filename  ) 

void wavfile::load ( short *  data,
int  samples,
int  bitsPerSample = 16,
int  AudioFormat = 1,
int  nChan = 1,
int  SampleRate = 8000 
)

Definition at line 59 of file wavfile.cpp.

void wavfile::print (  ) 

Definition at line 118 of file wavfile.cpp.

bool wavfile::saveToFile ( const char *  Filename  ) 

Definition at line 154 of file wavfile.cpp.

Referenced by vxmlParser::SaveWav().

short* wavfile::getData ( void   )  [inline]

Definition at line 42 of file wavfile.h.

Referenced by vxmlParser::PlayTTSPrompt(), vxmlParser::PlayWav(), and Tone::Tone().

int wavfile::samples (  )  [inline]

Definition at line 43 of file wavfile.h.

Referenced by vxmlParser::PlayTTSPrompt(), vxmlParser::PlayWav(), and Tone::Tone().

void wavfile::transcodeTo8K (  )  [private]

Definition at line 89 of file wavfile.cpp.

Referenced by load().


Member Data Documentation

bool wavfile::loaded [private]

Definition at line 48 of file wavfile.h.

Referenced by load(), print(), samples(), wavfile(), and ~wavfile().

wavstruct wavfile::w [private]

Definition at line 49 of file wavfile.h.

Referenced by load(), print(), samples(), saveToFile(), and transcodeTo8K().

char* wavfile::audio [private]

Definition at line 50 of file wavfile.h.

Referenced by getData(), load(), saveToFile(), transcodeTo8K(), wavfile(), and ~wavfile().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:14 2010 for MythTV by  doxygen 1.5.5