AudioDataImpl< Type, ValueType, SampleValueType > Class Template Reference
implementation of the AudioData-Interface
#include <AudioData.h>
List of all members.
template<AUDIOSAMPLETYPE Type, class ValueType, class SampleValueType = AudioSampleValue<Type,ValueType>>
class AudioDataImpl< Type, ValueType, SampleValueType >
Constructor & Destructor Documentation
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType = AudioSampleValue<Type,ValueType>>
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType = AudioSampleValue<Type,ValueType>>
Member Function Documentation
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType >
unsigned long AudioDataImpl< Type, ValueType, SampleValueType >::getNumSamples |
( |
void |
|
) |
const [inline, virtual] |
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType >
get the sample at position pos
- Parameters:
-
- Returns:
- the sample at the given position
The sample object is created in this function and should be deleted by the caller. The derived class should check the condition(s) given above in its Implementation of this function.
Implements CvrStgObject.
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType >
SWORD32 AuPCM32AudioData::readValue |
( |
BinaryIO * |
io |
) |
const [inline, private] |
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType >
replace a sample thus (possibly) altering the value of the bit returned by SampleValue->getBit()
- Parameters:
-
| 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) |
The derived class should check the condition(s) given above in its Implementation of this function.
Implements CvrStgObject.
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType >
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType = AudioSampleValue<Type,ValueType>>
void AudioDataImpl< Type, ValueType, SampleValueType >::writeValue |
( |
BinaryIO * |
io, |
|
|
ValueType |
v | |
|
) |
| | const [private] |
Member Data Documentation
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType = AudioSampleValue<Type,ValueType>>
std::vector<ValueType> AudioDataImpl< Type, ValueType, SampleValueType >::Data [private] |
template<AUDIOSAMPLETYPE Type, class ValueType , class SampleValueType = AudioSampleValue<Type,ValueType>>
The documentation for this class was generated from the following files: