pcce::SoundStream Class Reference

#include <SoundStream.h>

Inheritance diagram for pcce::SoundStream:

pcce::ISound

List of all members.

Public Member Functions

 SoundStream (const std::string &fileName)
 ~SoundStream ()
void vPlay ()
void vPause ()
void vStop ()

Private Member Functions

void DoDispatchEvent (tSoundAction action)

Private Attributes

std::string mFileName


Detailed Description

Definition at line 40 of file SoundStream.h.


Constructor & Destructor Documentation

pcce::SoundStream::SoundStream ( const std::string &  fileName  ) 

SoundStream::~SoundStream (  ) 

Definition at line 41 of file SoundStream.cpp.

References DoDispatchEvent(), and pcce::saReleaseSource.

00041                           {
00042   DoDispatchEvent(saReleaseSource);
00043 }


Member Function Documentation

void SoundStream::vPlay (  )  [virtual]

Implements pcce::ISound.

Definition at line 45 of file SoundStream.cpp.

References DoDispatchEvent(), and pcce::saPlay.

00045                         {
00046   DoDispatchEvent(saPlay);
00047 }

void SoundStream::vPause (  )  [virtual]

Implements pcce::ISound.

Definition at line 49 of file SoundStream.cpp.

References DoDispatchEvent(), and pcce::saPause.

00049                          {
00050   DoDispatchEvent(saPause);
00051 }

void SoundStream::vStop (  )  [virtual]

Implements pcce::ISound.

Definition at line 53 of file SoundStream.cpp.

References DoDispatchEvent(), and pcce::saStop.

00053                         {
00054   DoDispatchEvent(saStop);
00055 }

void SoundStream::DoDispatchEvent ( tSoundAction  action  )  [private]

Definition at line 57 of file SoundStream.cpp.

References pcce::Singleton< T >::Get(), pcce::ISound::GetID(), and mFileName.

Referenced by vPause(), vPlay(), vStop(), and ~SoundStream().

00057                                                      {
00058   tIEventPtr e(new SoundStreamEvent(mFileName, GetID(), action));
00059   
00060   EventSystemSingleton::Get()->DispatchEvent(e);
00061 }


Member Data Documentation

std::string pcce::SoundStream::mFileName [private]

Definition at line 50 of file SoundStream.h.

Referenced by DoDispatchEvent().


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