a class representing an audio sample
#include <AudioSampleValue.h>
|
EmbValue | EValue |
| the bit that is embedded in this sample value - must be set in constructor of derived class More...
|
|
UWORD32 | Key |
| the key of this sample value - must be different for two different sample values - must be set in constructor of derived class More...
|
|
§ AudioSampleValue()
template<AUDIOSAMPLETYPE Type, class ValueType >
§ calcDistance()
template<AUDIOSAMPLETYPE Type, class ValueType >
calculate the distance between the sample value s and this sample value
- Parameters
-
s | a sample value of the same type as this |
- Returns
- the distance
Implements SampleValue.
§ calcEValue()
template<AUDIOSAMPLETYPE Type, class ValueType>
§ calcKey()
template<AUDIOSAMPLETYPE Type, class ValueType>
§ getName()
template<AUDIOSAMPLETYPE Type, class ValueType >
return a short name uniquely identifying this sample value
Implements SampleValue.
§ getNearestTargetSampleValue()
template<AUDIOSAMPLETYPE Type, class ValueType >
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
- Parameters
-
t | the target embedded value |
If two or more target sample values have equal distance each of them should be returned with equal probability.
The returned SampleValue object should be deleted by the callser.
Implements SampleValue.
§ getValue()
template<AUDIOSAMPLETYPE Type, class ValueType>
§ MaxValue
template<AUDIOSAMPLETYPE Type, class ValueType>
§ MinValue
template<AUDIOSAMPLETYPE Type, class ValueType>
const SWORD32 AuPCM32SampleValue::MinValue = 0 |
|
staticprivate |
§ Value
template<AUDIOSAMPLETYPE Type, class ValueType>
The documentation for this class was generated from the following files: