Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

SoundManager.h

Go to the documentation of this file.
00001 /**************************************************************/
00002 /*  Name: Sascha Becker
00003 /*  File: SoundManager.h
00004 /*  Asgn: cavewriting
00005 /*  Date: 1.08.05
00006 /**************************************************************/
00007 
00008 #ifndef SoundManagerMAX_Header
00009 #define SoundManagerMAX_Header
00010 
00011 #include "ClientSocket.h"
00012 #include <string>
00013 #include <sys/types.h>
00014 #include <sys/socket.h>
00015 #include <G3DAll.h>
00016 
00017 using namespace std;
00018 
00019 #define SOUNDMGR_HOSTNAME "g5.cascv.brown.edu"
00020 #define SOUNDMGR_PORT 8888
00021 
00022 class SoundManager  {
00023 
00024 public:
00027   static void playSound (const string& soundName, 
00028              const Vector3& loc = Vector3(0,0,0), 
00029              const Vector3& velocity = Vector3(1,0,0));
00030 
00031 
00032   SoundManager();
00033   virtual ~SoundManager();
00034   void ping(); 
00035   static void playEndSound();
00036 
00037 protected:
00038   void playSoundI(const string& soundName, 
00039          const Vector3& loc = Vector3(0,0,0), 
00040          const Vector3& velocity = Vector3(1,0,0));
00041 
00042 private:
00043   ClientSocket *_socket;
00044 
00045 };
00046 
00047 
00048 
00049 #endif

Generated on Sun Apr 17 13:34:27 2005 for cavewriting by  doxygen 1.4.0