Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

WAV Class Reference

#include <WAV.h>

List of all members.


Detailed Description

Definition at line 41 of file WAV.h.


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 ()
byteGetDataStart ()
byteGetDataEnd ()

Private Member Functions

longword get_longword (byte *addr)
word get_word (byte *addr)
 WAV (const WAV &)
 don't call
WAVoperator= (const WAV &)
 don't call

Private Attributes

OSoundInfo soundInfo
size_t soundUnitSize
bytedataStart
bytedataEnd
bytedataCurrent

Static Private Attributes

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

Constructor & Destructor Documentation

WAV::WAV (  ) 

Definition at line 32 of file WAV.cc.

WAV::WAV ( byte addr  ) 

Definition at line 36 of file WAV.cc.

WAV::~WAV (  )  [inline]

Definition at line 45 of file WAV.h.

WAV::WAV ( const WAV  )  [private]

don't call


Member Function Documentation

WAVError WAV::Set ( byte addr  ) 

Definition at line 42 of file WAV.cc.

Referenced by SoundManager::loadFile(), and WAV().

WAVError WAV::CopyTo ( OSoundVectorData data  ) 

Definition at line 173 of file WAV.cc.

WAVError WAV::Rewind (  ) 

Definition at line 229 of file WAV.cc.

unsigned int WAV::GetSamplingRate (  )  [inline]

Definition at line 51 of file WAV.h.

Referenced by SoundManager::loadFile().

unsigned int WAV::GetBitsPerSample (  )  [inline]

Definition at line 52 of file WAV.h.

Referenced by SoundManager::loadFile().

size_t WAV::GetSoundUnitSize (  )  [inline]

Definition at line 53 of file WAV.h.

byte* WAV::GetDataStart (  )  [inline]

Definition at line 55 of file WAV.h.

Referenced by SoundManager::loadFile().

byte* WAV::GetDataEnd (  )  [inline]

Definition at line 56 of file WAV.h.

Referenced by SoundManager::loadFile().

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

Definition at line 236 of file WAV.cc.

Referenced by Set().

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

Definition at line 246 of file WAV.cc.

Referenced by Set().

WAV& WAV::operator= ( const WAV  )  [private]

don't call


Member Data Documentation

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

Definition at line 63 of file WAV.h.

Referenced by CopyTo(), and Set().

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

Definition at line 66 of file WAV.h.

Referenced by Set().

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

Definition at line 68 of file WAV.h.

Referenced by Set().

Definition at line 70 of file WAV.h.

Referenced by CopyTo(), GetBitsPerSample(), GetSamplingRate(), and Set().

size_t WAV::soundUnitSize [private]

Definition at line 71 of file WAV.h.

Referenced by CopyTo(), GetSoundUnitSize(), and Set().

byte* WAV::dataStart [private]

Definition at line 72 of file WAV.h.

Referenced by GetDataStart(), Rewind(), and Set().

byte* WAV::dataEnd [private]

Definition at line 73 of file WAV.h.

Referenced by CopyTo(), GetDataEnd(), and Set().

byte* WAV::dataCurrent [private]

Definition at line 74 of file WAV.h.

Referenced by CopyTo(), Rewind(), and Set().


The documentation for this class was generated from the following files:

Tekkotsu v4.0
Generated Thu Nov 22 00:58:47 2007 by Doxygen 1.5.4