Pentagram::AudioSample Class Reference

#include <AudioSample.h>

Inheritance diagram for Pentagram::AudioSample:

Pentagram::RawAudioSample Pentagram::SonarcAudioSample List of all members.

Public Member Functions

 AudioSample (uint8 *buffer, uint32 size)
virtual ~AudioSample (void)
uint32 getRate () const
uint32 getBits () const
bool isStereo () const
uint32 getFrameSize () const
uint32 getDecompressorDataSize () const
uint32 getLength () const
virtual void initDecompressor (void *DecompData) const =0
virtual uint32 decompressFrame (void *DecompData, void *samples) const =0
virtual void rewind (void *DecompData) const =0

Protected Attributes

uint32 sample_rate
uint32 bits
bool stereo
int frame_size
uint32 decompressor_size
uint32 length
uint32 buffer_size
uint8buffer

Detailed Description

Definition at line 25 of file AudioSample.h.


Constructor & Destructor Documentation

Pentagram::AudioSample::AudioSample ( uint8 buffer,
uint32  size 
)

Definition at line 24 of file AudioSample.cpp.

Pentagram::AudioSample::~AudioSample ( void   )  [virtual]

Definition at line 31 of file AudioSample.cpp.

References buffer.


Member Function Documentation

virtual uint32 Pentagram::AudioSample::decompressFrame ( void *  DecompData,
void *  samples 
) const [pure virtual]

Implemented in Pentagram::RawAudioSample, and Pentagram::SonarcAudioSample.

Referenced by Pentagram::AudioChannel::DecompressNextFrame(), and Pentagram::AudioChannel::playSample().

uint32 Pentagram::AudioSample::getBits (  )  const [inline]

Definition at line 43 of file AudioSample.h.

References bits.

Referenced by Pentagram::AudioChannel::playSample(), and Pentagram::AudioChannel::resampleAndMix().

uint32 Pentagram::AudioSample::getDecompressorDataSize (  )  const [inline]

Definition at line 46 of file AudioSample.h.

References decompressor_size.

Referenced by Pentagram::AudioChannel::playSample().

uint32 Pentagram::AudioSample::getFrameSize (  )  const [inline]

Definition at line 45 of file AudioSample.h.

References frame_size.

Referenced by Pentagram::AudioChannel::playSample().

uint32 Pentagram::AudioSample::getLength (  )  const [inline]

get AudioSample length (in samples)

Definition at line 49 of file AudioSample.h.

References length.

Referenced by SpeechFlex::getSpeechLength().

uint32 Pentagram::AudioSample::getRate (  )  const [inline]

Definition at line 42 of file AudioSample.h.

References sample_rate.

Referenced by SpeechFlex::getSpeechLength(), Pentagram::AudioChannel::playSample(), and Pentagram::AudioChannel::resampleAndMix().

virtual void Pentagram::AudioSample::initDecompressor ( void *  DecompData  )  const [pure virtual]

Implemented in Pentagram::RawAudioSample, and Pentagram::SonarcAudioSample.

Referenced by Pentagram::AudioChannel::playSample().

bool Pentagram::AudioSample::isStereo (  )  const [inline]

Definition at line 44 of file AudioSample.h.

References stereo.

Referenced by SpeechFlex::getSpeechLength(), Pentagram::AudioChannel::playSample(), and Pentagram::AudioChannel::resampleAndMix().

virtual void Pentagram::AudioSample::rewind ( void *  DecompData  )  const [pure virtual]

Implemented in Pentagram::RawAudioSample, and Pentagram::SonarcAudioSample.

Referenced by Pentagram::AudioChannel::DecompressNextFrame().


Member Data Documentation

uint32 Pentagram::AudioSample::bits [protected]

Definition at line 29 of file AudioSample.h.

Referenced by getBits(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().

uint8* Pentagram::AudioSample::buffer [protected]

Definition at line 36 of file AudioSample.h.

Referenced by Pentagram::SonarcAudioSample::decompressFrame(), Pentagram::RawAudioSample::decompressFrame(), Pentagram::SonarcAudioSample::SonarcAudioSample(), and ~AudioSample().

uint32 Pentagram::AudioSample::buffer_size [protected]

Definition at line 35 of file AudioSample.h.

Referenced by Pentagram::SonarcAudioSample::decompressFrame(), and Pentagram::RawAudioSample::decompressFrame().

uint32 Pentagram::AudioSample::decompressor_size [protected]

Definition at line 32 of file AudioSample.h.

Referenced by getDecompressorDataSize(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().

int Pentagram::AudioSample::frame_size [protected]

Definition at line 31 of file AudioSample.h.

Referenced by Pentagram::RawAudioSample::decompressFrame(), getFrameSize(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().

uint32 Pentagram::AudioSample::length [protected]

Definition at line 33 of file AudioSample.h.

Referenced by Pentagram::SonarcAudioSample::decompressFrame(), getLength(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().

uint32 Pentagram::AudioSample::sample_rate [protected]

Definition at line 28 of file AudioSample.h.

Referenced by getRate(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().

bool Pentagram::AudioSample::stereo [protected]

Definition at line 30 of file AudioSample.h.

Referenced by isStereo(), Pentagram::RawAudioSample::RawAudioSample(), and Pentagram::SonarcAudioSample::SonarcAudioSample().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:30:29 2007 for pentagram by  doxygen 1.4.7