Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

SoundPlay.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_SoundPlay_h_
00003 #define INCLUDED_SoundPlay_h_
00004 
00005 #include "Process.h"
00006 #include "sim.h"
00007 #include "IPC/ProcessID.h"
00008 #include "IPC/SharedObject.h"
00009 #include "SharedGlobals.h"
00010 #include "Sound/SoundManager.h"
00011 #include "Shared/Profiler.h"
00012 #include "SoundPlayThread.h"
00013 
00014 class SoundPlay : public Process {
00015 public:
00016   //! constructor
00017   SoundPlay();
00018   //! destructor
00019   ~SoundPlay();
00020 
00021   virtual void doStart();
00022   virtual void doStop();
00023 
00024   static const char * getClassName() { return "SoundPlay"; }
00025   static ProcessID::ProcessID_t getID() { return ProcessID::SoundProcess; }
00026   
00027   static const char * getSoundPlayID() { return "Sounds"; }
00028   static const char * getSoundManagerID() { return "SoundManager"; }
00029   static const char * getSoundProfilerID() { return "SoundProfiler"; }
00030 
00031 protected:
00032   SharedObject<sim::SoundPlayQueue_t> requests;
00033   SharedObject<sim::EventQueue_t> events;
00034   SharedObject<sim::StatusRequest_t> statusRequest;
00035   SharedObject<SoundManager> soundmanager;
00036   SharedObject<soundProfiler_t> soundProf;
00037   
00038   static SoundPlayThread * player;
00039   
00040   IPCEventTranslator * etrans;
00041   class MessageReceiver * sndrecv;
00042   class MessageReceiver * statusrecv;
00043   static bool gotSnd(RCRegion* msg);
00044   
00045 private:
00046   SoundPlay(const SoundPlay&); //!< don't call (copy constructor)
00047   SoundPlay& operator=(const SoundPlay&); //!< don't call (assignment operator)
00048 };
00049 
00050 /*! @file
00051  * @brief Defines SoundPlay, which DESCRIPTION
00052  * @author ejt (Creator)
00053  */
00054 
00055 #endif

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:39 2016 by Doxygen 1.6.3