#include <wavfile.h>
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 |
| wavfile::wavfile | ( | ) |
Definition at line 22 of file wavfile.cpp.
| wavfile::~wavfile | ( | ) |
Definition at line 28 of file wavfile.cpp.
| bool wavfile::load | ( | const char * | Filename | ) |
Definition at line 34 of file wavfile.cpp.
Referenced by PhoneUIBox::handleTreeListSignals(), vxmlParser::PlayWav(), vxmlParser::SaveWav(), and tts::toWavFile().
| 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 | ) |
| 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] |
bool wavfile::loaded [private] |
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().
1.5.5