Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

WAV Class Reference

#include <WAV.h>

List of all members.

Public Member Functions

 WAV ()
 WAV (byte *addr)
 ~WAV ()
WAVError Set (byte *addr)
WAVError CopyTo (OSoundVectorData *data)
WAVError Rewind ()
unsigned int GetSamplingRate ()
unsigned int GetBitsPerSample ()
size_t GetSoundUnitSize ()
byte * GetDataStart ()
byte * GetDataEnd ()

Private Member Functions

longword get_longword (byte *addr)
word get_word (byte *addr)

Private Attributes

OSoundInfo soundInfo
size_t soundUnitSize
byte * dataStart
byte * dataEnd
byte * dataCurrent

Static Private Attributes

const size_t MONO8K8B_UNIT_SIZE = 256
const size_t MONO16K16B_UNIT_SIZE = 1024
const size_t FMTSIZE_WITHOUT_EXTINFO = 16


Constructor & Destructor Documentation

WAV::WAV  ) 
 

Definition at line 28 of file WAV.cc.

WAV::WAV byte *  addr  ) 
 

Definition at line 32 of file WAV.cc.

References Set().

WAV::~WAV  )  [inline]
 

Definition at line 45 of file WAV.h.


Member Function Documentation

WAVError WAV::CopyTo OSoundVectorData *  data  ) 
 

Definition at line 169 of file WAV.cc.

References dataCurrent, dataEnd, MONO8K8B_UNIT_SIZE, soundInfo, soundUnitSize, WAV_FAIL, WAV_SIZE_NOT_ENOUGH, and WAV_SUCCESS.

longword WAV::get_longword byte *  addr  )  [private]
 

Definition at line 232 of file WAV.cc.

word WAV::get_word byte *  addr  )  [private]
 

Definition at line 242 of file WAV.cc.

unsigned int WAV::GetBitsPerSample  )  [inline]
 

Definition at line 52 of file WAV.h.

References soundInfo.

byte* WAV::GetDataEnd  )  [inline]
 

Definition at line 56 of file WAV.h.

References dataEnd.

byte* WAV::GetDataStart  )  [inline]
 

Definition at line 55 of file WAV.h.

References dataStart.

unsigned int WAV::GetSamplingRate  )  [inline]
 

Definition at line 51 of file WAV.h.

References soundInfo.

size_t WAV::GetSoundUnitSize  )  [inline]
 

Definition at line 53 of file WAV.h.

References soundUnitSize.

WAVError WAV::Rewind  ) 
 

Definition at line 225 of file WAV.cc.

References dataCurrent, dataStart, and WAV_SUCCESS.

WAVError WAV::Set byte *  addr  ) 
 

Definition at line 38 of file WAV.cc.

References dataCurrent, dataEnd, dataStart, FMTSIZE_WITHOUT_EXTINFO, get_longword(), get_word(), MONO16K16B_UNIT_SIZE, MONO8K8B_UNIT_SIZE, soundInfo, soundUnitSize, WAV_BITSPERSAMPLE_NOT_SUPPORTED, WAV_CHANNEL_NOT_SUPPORTED, WAV_FORMAT_NOT_SUPPORTED, WAV_NOT_RIFF, WAV_NOT_WAV, WAV_SAMPLINGRATE_NOT_SUPPORTED, and WAV_SUCCESS.


Member Data Documentation

byte* WAV::dataCurrent [private]
 

Definition at line 74 of file WAV.h.

byte* WAV::dataEnd [private]
 

Definition at line 73 of file WAV.h.

byte* WAV::dataStart [private]
 

Definition at line 72 of file WAV.h.

const size_t WAV::FMTSIZE_WITHOUT_EXTINFO = 16 [static, private]
 

Definition at line 68 of file WAV.h.

const size_t WAV::MONO16K16B_UNIT_SIZE = 1024 [static, private]
 

Definition at line 66 of file WAV.h.

const size_t WAV::MONO8K8B_UNIT_SIZE = 256 [static, private]
 

Definition at line 63 of file WAV.h.

OSoundInfo WAV::soundInfo [private]
 

Definition at line 70 of file WAV.h.

size_t WAV::soundUnitSize [private]
 

Definition at line 71 of file WAV.h.


The documentation for this class was generated from the following files:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:15 2003 by Doxygen 1.3.2