pcce::ISound Class Reference

#include <ISound.h>

Inheritance diagram for pcce::ISound:

pcce::SoundBuffer pcce::SoundStream

List of all members.

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


Detailed Description

Definition at line 44 of file ISound.h.


Constructor & Destructor Documentation

ISound::ISound (  ) 

Definition at line 40 of file ISound.cpp.

00040               : mID(AcquireNextID()) {
00041 }

virtual pcce::ISound::~ISound (  )  [inline, virtual]

Definition at line 47 of file ISound.h.

00047 {};


Member Function Documentation

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 }


Member Data Documentation

Definition at line 57 of file ISound.h.

Referenced by GetID().

tSoundID ISound::sNextID = 0 [static, private]

Definition at line 59 of file ISound.h.

Referenced by AcquireNextID().

boost::mutex ISound::sIDMutex [static, private]

Definition at line 60 of file ISound.h.

Referenced by AcquireNextID().


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

Generated on Thu Mar 6 11:39:28 2008 for Protocce by  doxygen 1.5.5