21 #ifndef SH_AUDIOSAMPLEVALUE_H 22 #define SH_AUDIOSAMPLEVALUE_H 48 template<AUDIOSAMPLETYPE Type,
class ValueType>
57 std::string
getName (
void)
const ;
68 template<AUDIOSAMPLETYPE Type,
class ValueType>
76 template<AUDIOSAMPLETYPE Type,
class ValueType>
92 template<AUDIOSAMPLETYPE Type,
class ValueType>
95 ValueType val_up =
Value, val_down =
Value, newval = 0 ;
128 template<AUDIOSAMPLETYPE Type,
class ValueType>
132 sprintf (buf,
"%ld", (
long)
Value) ;
133 return std::string (buf) ;
136 #endif // ndef SH_AUDIOSAMPLEVALUE_H AudioSampleValue(ValueType v)
Definition: AudioSampleValue.h:69
SampleValue * getNearestTargetSampleValue(EmbValue t) const
Definition: AudioSampleValue.h:93
UWORD32 Key
the key of this sample value - must be different for two different sample values - must be set in con...
Definition: SampleValue.h:137
EmbValue getEmbValueModulus(void) const
Definition: CvrStgFile.h:130
ValueType getValue(void) const
Definition: AudioSampleValue.h:53
Globals Globs
Definition: Embedder.cc:41
UWORD32 calcKey(ValueType v) const
Definition: AudioSampleValue.h:64
the value of a sample in a CvrStgFile
Definition: SampleValue.h:61
AUDIOSAMPLETYPE
Definition: AudioSampleValue.h:33
static const ValueType MinValue
Definition: AudioSampleValue.h:61
std::string getName(void) const
Definition: AudioSampleValue.h:129
UWORD32 calcDistance(const SampleValue *s) const
Definition: AudioSampleValue.h:77
bool getBool(void)
Definition: RandomSource.cc:99
EmbValue calcEValue(ValueType v) const
Definition: AudioSampleValue.h:65
EmbValue EValue
the bit that is embedded in this sample value - must be set in constructor of derived class ...
Definition: SampleValue.h:134
unsigned long UWORD32
Definition: common.h:45
au 8 Bit mu-law
Definition: AudioSampleValue.h:35
static const ValueType MaxValue
Definition: AudioSampleValue.h:62
CvrStgFile * TheCvrStgFile
the cover-/stego- file that is operated on (set in CvrStgFile::CvrStgFile)
Definition: Globals.h:55
ValueType Value
Definition: AudioSampleValue.h:60
BYTE EmbValue
Definition: common.h:66
au 32 Bit linear pcm
Definition: AudioSampleValue.h:41
RandomSource RndSrc
Definition: RandomSource.cc:31
au 8 Bit linear pcm
Definition: AudioSampleValue.h:37
a class representing an audio sample
Definition: AudioSampleValue.h:49
au 16 Bit linear pcm
Definition: AudioSampleValue.h:39