#include <AudioData.h>
Inheritance diagram for AudioDataImpl< Type, ValueType, SampleValueType >:
Public Member Functions | |
AudioDataImpl (CvrStgFile *f) | |
virtual | ~AudioDataImpl (void) |
void | read (BinaryIO *io, UWORD32 n=AudioData::NoLimit) |
void | write (BinaryIO *io, UWORD32 n=AudioData::NoLimit) |
unsigned long | getNumSamples (void) const |
SampleValue * | getSampleValue (const SamplePos pos) const |
void | replaceSample (const SamplePos pos, const SampleValue *s) |
Private Member Functions | |
ValueType | readValue (BinaryIO *io) const |
void | writeValue (BinaryIO *io, ValueType v) const |
Private Attributes | |
std::vector< ValueType > | Data |
CvrStgFile * | TheCvrStgFile |
AudioDataImpl< Type, ValueType, SampleValueType >::AudioDataImpl | ( | CvrStgFile * | f | ) | [inline] |
virtual AudioDataImpl< Type, ValueType, SampleValueType >::~AudioDataImpl | ( | void | ) | [inline, virtual] |
unsigned long AudioDataImpl< Type, ValueType, SampleValueType >::getNumSamples | ( | void | ) | const [virtual] |
get the number of samples in this CvrStgObject
Implements CvrStgObject.
SampleValue * AudioDataImpl< Type, ValueType, SampleValueType >::getSampleValue | ( | const SamplePos | pos | ) | const [virtual] |
get the sample at position pos
pos | the position of a sample (must be in 0...getNumSamples()-1) |
Implements CvrStgObject.
void AudioDataImpl< Type, ValueType, SampleValueType >::read | ( | BinaryIO * | io, | |
UWORD32 | n = AudioData::NoLimit | |||
) | [virtual] |
Implements AudioData.
void AudioDataImpl< Type, ValueType, SampleValueType >::replaceSample | ( | const SamplePos | pos, | |
const SampleValue * | s | |||
) | [virtual] |
replace a sample thus (possibly) altering the value of the bit returned by SampleValue->getBit()
pos | the position of the sample (must be in 0...getNumSamples()-1) | |
s | the sample value that should replace the current sample value (must be of correct type for this CvrStgObject) |
Implements CvrStgObject.
void AudioDataImpl< Type, ValueType, SampleValueType >::write | ( | BinaryIO * | io, | |
UWORD32 | n = AudioData::NoLimit | |||
) | [virtual] |
Implements AudioData.
void AudioDataImpl< Type, ValueType, SampleValueType >::writeValue | ( | BinaryIO * | io, | |
ValueType | v | |||
) | const [private] |
std::vector<ValueType> AudioDataImpl< Type, ValueType, SampleValueType >::Data [private] |
CvrStgFile* AudioDataImpl< Type, ValueType, SampleValueType >::TheCvrStgFile [private] |