#include <AuFile.h>
Inheritance diagram for AuFile:
Public Member Functions | |
AuFile (BinaryIO *io) | |
~AuFile (void) | |
void | read (BinaryIO *io) |
void | write (void) |
std::list< CvrStgFile::Property > | getProperties (void) const |
std::vector< MatchingAlgorithm * > | getMatchingAlgorithms (Graph *g, Matching *m) const |
unsigned long | getNumSamples (void) const |
void | replaceSample (const SamplePos pos, const SampleValue *s) |
SampleValue * | getSampleValue (SamplePos pos) const |
Private Types | |
enum | ENCODING { MULAW8 = 1, PCM8 = 2, PCM16 = 3 } |
Private Attributes | |
AuHeader | Header |
std::vector< BYTE > | Infofield |
AudioData * | Data |
Static Private Attributes | |
static const UWORD32 | Radius_MuLaw8 = 1 |
static const UWORD32 | Radius_PCM8 = 1 |
static const UWORD32 | Radius_PCM16 = 20 |
static const unsigned short | SamplesPerVertex = 2 |
static const EmbValue | EmbValueModulus = 2 |
Classes | |
class | AuHeader |
enum AuFile::ENCODING [private] |
AuFile::AuFile | ( | BinaryIO * | io | ) |
AuFile::~AuFile | ( | void | ) |
void AuFile::read | ( | BinaryIO * | io | ) | [virtual] |
Reimplemented from CvrStgFile.
void AuFile::write | ( | void | ) | [virtual] |
Reimplemented from CvrStgFile.
std::list< CvrStgFile::Property > AuFile::getProperties | ( | void | ) | const [virtual] |
Implements CvrStgFile.
std::vector< MatchingAlgorithm * > AuFile::getMatchingAlgorithms | ( | Graph * | g, | |
Matching * | m | |||
) | const [virtual] |
get recommended list of matching algorithms
m | an empty matching - will be used in construction of MatchingAlgorithm objects |
Reimplemented from CvrStgFile.
unsigned long AuFile::getNumSamples | ( | void | ) | const [inline, virtual] |
get the number of samples in this CvrStgObject
Implements CvrStgObject.
void AuFile::replaceSample | ( | const SamplePos | pos, | |
const SampleValue * | s | |||
) | [inline, virtual] |
replace a sample thus (possibly) altering the value of the bit returned by SampleValue->getBit()
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) |
Implements CvrStgObject.
SampleValue* AuFile::getSampleValue | ( | SamplePos | pos | ) | const [inline, virtual] |
get the sample at position pos
pos | the position of a sample (must be in 0...getNumSamples()-1) |
Implements CvrStgObject.
const UWORD32 AuFile::Radius_MuLaw8 = 1 [static, private] |
const UWORD32 AuFile::Radius_PCM8 = 1 [static, private] |
const UWORD32 AuFile::Radius_PCM16 = 20 [static, private] |
const unsigned short AuFile::SamplesPerVertex = 2 [static, private] |
Reimplemented from CvrStgFile.
const EmbValue AuFile::EmbValueModulus = 2 [static, private] |
Reimplemented from CvrStgFile.
AuHeader AuFile::Header [private] |
std::vector<BYTE> AuFile::Infofield [private] |
AudioData* AuFile::Data [private] |