#include <WavFile.h>
◆ WavFile() [1/2]
WavFile::WavFile |
( |
void | | ) |
|
◆ WavFile() [2/2]
◆ ~WavFile()
WavFile::~WavFile |
( |
void | | ) |
|
◆ calcpos()
void WavFile::calcpos |
( |
SamplePos | n, |
|
|
unsigned long * | bytepos, |
|
|
unsigned short * | firstbitpos ) const |
|
private |
◆ calcSVAdjacencyLists()
calculate a vector a SampleValueAdjacencyLists
- Parameters
-
svs | a vector of unique(!) sample values where svs[i]->getLabel() == i holds for all i |
- Returns
- a vector of SampleValueAdjacencyLists where retval[i] only contains sample values with getEmbValue() == i
Every row in the adjacency lists must be sorted in the following order: The first sample value has the least distance to the source sample value, the last has the largest distance. If two sample values in one row have the same distance to the source sample value, the order does not matter.
May be overridden in derived class to provide a faster version.
Reimplemented from CvrStgFile.
◆ getBitsPerSample()
unsigned short WavFile::getBitsPerSample |
( |
void | | ) |
const |
◆ getBytesPerSample()
unsigned short WavFile::getBytesPerSample |
( |
void | | ) |
|
|
private |
◆ getFirstBitPosinSample()
unsigned short WavFile::getFirstBitPosinSample |
( |
void | | ) |
|
|
private |
get the position of the first bit (of the first byte) containing the actual sample data
- Returns
- the bit position (where 0 is the lsb and 7 the msb)
◆ getMatchingAlgorithms()
get recommended list of matching algorithms
- Parameters
-
The MatchingAlgorithm objects returned by this function should be deleted by the caller if they are no longer needed.
Reimplemented from CvrStgFile.
◆ getNumSamples()
unsigned long WavFile::getNumSamples |
( |
void | | ) |
const |
|
virtual |
◆ getProperties()
◆ getSampleValue()
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.
◆ read()
◆ readdata()
void WavFile::readdata |
( |
void | | ) |
|
|
private |
◆ readheaders()
void WavFile::readheaders |
( |
void | | ) |
|
|
private |
◆ replaceSample()
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.
◆ write()
void WavFile::write |
( |
void | | ) |
|
|
virtual |
◆ writedata()
void WavFile::writedata |
( |
void | | ) |
|
|
private |
◆ writeheaders()
void WavFile::writeheaders |
( |
void | | ) |
|
|
private |
◆ data_large
std::vector<int> WavFile::data_large |
|
private |
◆ data_small
std::vector<unsigned char> WavFile::data_small |
|
private |
◆ datachhdr
◆ EmbValueModulus
const EmbValue WavFile::EmbValueModulus = 2 |
|
staticprivate |
◆ FormatChunk
◆ FormatPCM
const signed short WavFile::FormatPCM = 1 |
|
staticprivate |
◆ id_wave
◆ Radius_large
const UWORD32 WavFile::Radius_large = 20 |
|
staticprivate |
◆ Radius_small
const UWORD32 WavFile::Radius_small = 1 |
|
staticprivate |
◆ riffchhdr
◆ SamplesPerVertex
const unsigned short WavFile::SamplesPerVertex = 2 |
|
staticprivate |
◆ UnusedAfterData
std::vector<BYTE> WavFile::UnusedAfterData |
|
private |
◆ UnusedBeforeData
The documentation for this class was generated from the following files: