#include <ISound.h>

Public Member Functions | |
| ISound () | |
| virtual | ~ISound () |
| virtual void | vPlay ()=0 |
| virtual void | vPause ()=0 |
| virtual void | vStop ()=0 |
Protected Member Functions | |
| tSoundID | GetID () |
Private Member Functions | |
| tSoundID | AcquireNextID () |
Private Attributes | |
| tSoundID | mID |
Static Private Attributes | |
| static tSoundID | sNextID = 0 |
| static boost::mutex | sIDMutex |
Definition at line 44 of file ISound.h.
| ISound::ISound | ( | ) |
| virtual pcce::ISound::~ISound | ( | ) | [inline, virtual] |
| virtual void pcce::ISound::vPlay | ( | ) | [pure virtual] |
Implemented in pcce::SoundBuffer, and pcce::SoundStream.
| virtual void pcce::ISound::vPause | ( | ) | [pure virtual] |
Implemented in pcce::SoundBuffer, and pcce::SoundStream.
| virtual void pcce::ISound::vStop | ( | ) | [pure virtual] |
Implemented in pcce::SoundBuffer, and pcce::SoundStream.
| tSoundID ISound::GetID | ( | ) | [protected] |
Definition at line 43 of file ISound.cpp.
References mID.
Referenced by pcce::SoundStream::DoDispatchEvent(), and pcce::SoundBuffer::DoDispatchEvent().
00043 { 00044 return mID; 00045 }
| tSoundID ISound::AcquireNextID | ( | ) | [private] |
Definition at line 47 of file ISound.cpp.
References PCCE_CHECK, sIDMutex, and sNextID.
00047 { 00048 boost::mutex::scoped_lock lock(sIDMutex); 00049 00050 tSoundID result = sNextID++; 00051 PCCE_CHECK(sNextID > result, "ISound::AcquireNextID: sNextID is not greater than current (overflow?)"); 00052 00053 return result; 00054 }
tSoundID pcce::ISound::mID [private] |
tSoundID ISound::sNextID = 0 [static, private] |
boost::mutex ISound::sIDMutex [static, private] |
1.5.5