#include <MercurySoundSourceWAV.h>
Collaboration diagram for MercurySoundSourceWAV:
Public Member Functions | |
MercurySoundSourceWAV () | |
~MercurySoundSourceWAV () | |
bool | Open (const MString &path) |
float * | ReadData (unsigned long samples) |
bool | Play () |
bool | Stop () |
void | Pause (bool pause) |
bool | IsPaused () const |
virtual MString | GetType () |
virtual void | GetAllTypes (MVector< MString > &vOut) |
virtual bool | IsTypeOf (const MString &sType) |
void | SetDestroyOnStop (bool destroy) |
Private Member Functions | |
bool | LocateAudioData () |
Private Attributes | |
bool | m_atAudioChunk |
MercuryFile * | m_file |
unsigned long | m_chunkSize |
unsigned long | m_chunkPosition |
SoundPlayState | m_playState |
bool | m_destroyOnStop |
Definition at line 40 of file MercurySoundSourceWAV.h.
MercurySoundSourceWAV::MercurySoundSourceWAV | ( | ) |
Definition at line 7 of file MercurySoundSourceWAV.cpp.
MercurySoundSourceWAV::~MercurySoundSourceWAV | ( | ) |
Definition at line 12 of file MercurySoundSourceWAV.cpp.
bool MercurySoundSourceWAV::Open | ( | const MString & | path | ) |
Definition at line 19 of file MercurySoundSourceWAV.cpp.
float * MercurySoundSourceWAV::ReadData | ( | unsigned long | samples | ) |
Definition at line 114 of file MercurySoundSourceWAV.cpp.
bool MercurySoundSourceWAV::Play | ( | ) |
Definition at line 143 of file MercurySoundSourceWAV.cpp.
bool MercurySoundSourceWAV::Stop | ( | ) |
Definition at line 155 of file MercurySoundSourceWAV.cpp.
void MercurySoundSourceWAV::Pause | ( | bool | pause | ) |
Definition at line 162 of file MercurySoundSourceWAV.cpp.
bool MercurySoundSourceWAV::IsPaused | ( | ) | const [inline] |
Definition at line 53 of file MercurySoundSourceWAV.h.
virtual MString MercurySoundSourceWAV::GetType | ( | ) | [inline, virtual] |
Definition at line 55 of file MercurySoundSourceWAV.h.
Definition at line 56 of file MercurySoundSourceWAV.h.
virtual bool MercurySoundSourceWAV::IsTypeOf | ( | const MString & | sType | ) | [inline, virtual] |
Definition at line 57 of file MercurySoundSourceWAV.h.
void MercurySoundSourceWAV::SetDestroyOnStop | ( | bool | destroy | ) | [inline] |
Definition at line 59 of file MercurySoundSourceWAV.h.
bool MercurySoundSourceWAV::LocateAudioData | ( | ) | [private] |
Definition at line 82 of file MercurySoundSourceWAV.cpp.
bool MercurySoundSourceWAV::m_atAudioChunk [private] |
Definition at line 63 of file MercurySoundSourceWAV.h.
MercuryFile* MercurySoundSourceWAV::m_file [private] |
Definition at line 65 of file MercurySoundSourceWAV.h.
unsigned long MercurySoundSourceWAV::m_chunkSize [private] |
Definition at line 66 of file MercurySoundSourceWAV.h.
unsigned long MercurySoundSourceWAV::m_chunkPosition [private] |
Definition at line 67 of file MercurySoundSourceWAV.h.
Definition at line 69 of file MercurySoundSourceWAV.h.
bool MercurySoundSourceWAV::m_destroyOnStop [private] |
Definition at line 70 of file MercurySoundSourceWAV.h.