#include <WavPCMSampleValue.h>
Inheritance diagram for WavPCMSampleValue:

Public Member Functions | |
| WavPCMSampleValue (int v) | |
| SampleValue * | getNearestTargetSampleValue (EmbValue t) const |
| UWORD32 | calcDistance (const SampleValue *s) const |
| std::string | getName (void) const |
| int | getValue (void) const |
Private Member Functions | |
| EmbValue | calcEValue (int v) const |
Private Attributes | |
| int | Value |
| int | MaxValue |
| int | MinValue |
| WavPCMSampleValue::WavPCMSampleValue | ( | int | v | ) |
| SampleValue * WavPCMSampleValue::getNearestTargetSampleValue | ( | EmbValue | t | ) | const [virtual] |
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
| t | the target embedded value |
The returned SampleValue object should be deleted by the callser.
Implements SampleValue.
| UWORD32 WavPCMSampleValue::calcDistance | ( | const SampleValue * | s | ) | const [virtual] |
calculate the distance between the sample value s and this sample value
| s | a sample value of the same type as this |
Implements SampleValue.
| std::string WavPCMSampleValue::getName | ( | void | ) | const [virtual] |
return a short name uniquely identifying this sample value
Implements SampleValue.
| int WavPCMSampleValue::getValue | ( | void | ) | const [inline] |
| EmbValue WavPCMSampleValue::calcEValue | ( | int | v | ) | const [inline, private] |
int WavPCMSampleValue::Value [private] |
int WavPCMSampleValue::MaxValue [private] |
int WavPCMSampleValue::MinValue [private] |
1.5.1