#include <WavFile.h>
Inheritance diagram for WavFile:
Public Member Functions | |
WavFile (void) | |
WavFile (BinaryIO *io) | |
~WavFile (void) | |
void | read (BinaryIO *io) |
void | write (void) |
std::list< CvrStgFile::Property > | getProperties (void) const |
unsigned long | getNumSamples (void) const |
void | replaceSample (const SamplePos pos, const SampleValue *s) |
SampleValue * | getSampleValue (SamplePos pos) const |
std::vector< SampleValueAdjacencyList * > | calcSVAdjacencyLists (const std::vector< SampleValue * > &svs) const |
std::vector< MatchingAlgorithm * > | getMatchingAlgorithms (Graph *g, Matching *m) const |
unsigned short | getBitsPerSample (void) const |
Private Member Functions | |
void | readheaders (void) |
void | readdata (void) |
void | writeheaders (void) |
void | writedata (void) |
void | calcpos (SamplePos n, unsigned long *bytepos, unsigned short *firstbitpos) const |
unsigned short | getFirstBitPosinSample (void) |
unsigned short | getBytesPerSample (void) |
Private Attributes | |
WavChunkHeader * | riffchhdr |
char | id_wave [4] |
WavFormatChunk * | FormatChunk |
WavChunkHeader * | datachhdr |
std::vector< unsigned char > | data_small |
this std::vector contains the wav data if BitsPerSample <= 8 | |
std::vector< int > | data_large |
this std::vector contains the wav data if BitsPerSample >8 | |
std::vector< WavChunkUnused * > | UnusedBeforeData |
std::vector< BYTE > | UnusedAfterData |
Static Private Attributes | |
const signed short | FormatPCM = 1 |
const unsigned short | SamplesPerVertex = 2 |
const UWORD32 | Radius_small = 1 |
const UWORD32 | Radius_large = 20 |
const EmbValue | EmbValueModulus = 2 |
|
|
|
|
|
|
|
|
|
calculate a vector a SampleValueAdjacencyLists
May be overridden in derived class to provide a faster version. Reimplemented from CvrStgFile. |
|
|
|
|
|
get the position of the first bit (of the first byte) containing the actual sample data
|
|
get recommended list of matching algorithms
Reimplemented from CvrStgFile. |
|
get the number of samples in this CvrStgObject Implements CvrStgObject. |
|
Implements CvrStgFile. |
|
get the sample at position pos
Implements CvrStgObject. |
|
Reimplemented from CvrStgFile. |
|
|
|
|
|
replace a sample thus (possibly) altering the value of the bit returned by SampleValue->getBit()
Implements CvrStgObject. |
|
Reimplemented from CvrStgFile. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CvrStgFile. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from CvrStgFile. |
|
|
|
|