#include <qwavvorbiswavedata.h>
Inheritance diagram for QwavVorbisWaveData:
Public Methods | |
QwavVorbisWaveData () | |
QwavVorbisWaveData (const string &filename) throw (FileOpenError, FileReadError) | |
virtual | ~QwavVorbisWaveData () |
float | sampleRate (void) const |
long | nrOfSamples (void) const |
uint | nrOfChannels (void) const |
const Float & | operator[] (uint index) const |
bool | readFile (const string &filename) throw (FileOpenError, FileReadError) |
bool | writeFile (const string &filename) throw (FileOpenError,FileReadError) |
QwavPeakInfo | getPeak (QwavPeakInterpolator *s, int pixel, int nPixels, Float zoomFac=1.0, uint channel=1) const |
bool | isOpen () const |
Protected Methods | |
QwavVorbisWaveData (const QwavVorbisWaveData &) | |
const QwavVorbisWaveData & | operator= (const QwavVorbisWaveData &) |
|
Standard constructor. Creates an empty and uninitialized QwavVorbisWaveData object. Call readFile() to open and read a waveform. |
|
Constructor. Creates an empty and uninitialized QwavVorbisWaveData object. Call readFile() to open and read a waveform. |
|
Destructor. |
|
Copy constructor. Made protected and unimplemented. |
|
Returns the peak for pixel using the QwavPeakInterpolator s according to the current nPixels and the zoomFac. The peak is returned for the given channel.
Implements QwavWaveDataInterface. |
|
Returns true if the wave is open, false if not. Implements QwavWaveDataInterface. |
|
Returns the number of channels of the waveform.
Implements QwavWaveDataInterface. |
|
Returns the number of samples of the waveform.
Implements QwavWaveDataInterface. |
|
Assignment operator. Made protected and unimplemented. |
|
Returns the pcm value at index of this waveform. The parameter index is not range checked for speed reason. The format of the returned pcm value depends on the setting in defines.h. The default is float, thus value are in the interval [-1,1].
Implements QwavWaveDataInterface. |
|
Opens the soundfile filename.
Implements QwavWaveDataInterface. |
|
Returns the sample rate of the waveform.
Implements QwavWaveDataInterface. |
|
Writes the sound data to the the file filename.
Implements QwavWaveDataInterface. |