home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / SoundInfo.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  1.0 KB  |  56 lines

  1. #ifndef __SoundInfo_h__
  2. #define __SoundInfo_h__
  3.  
  4. #include "SubSystemInfo.h"
  5. #include "CVar.h"
  6. #include "SoundCCmds.h"
  7.  
  8.  
  9. typedef struct SoundInfoVar_s{
  10.     bool playMusic;
  11.     bool playSamples;
  12.     bool enabled;
  13.     bool stereo;
  14.  
  15.     int musicVolume;
  16.     int sampleVolume;
  17.     
  18.     int maxDistance;
  19.  
  20.     int sampleRate;
  21.     int numEffectChannels;
  22.     int chunkSize;
  23.  
  24. }SoundInfoVar_t;
  25.  
  26. typedef struct SoundInfoCVar_s{
  27.     CVarBool* sound_playMusic;
  28.     CVarBool* sound_playSamples;
  29.     CVarBool* sound_enabled;
  30.     CVarBool* sound_stereo;
  31.  
  32.     CVarInt* sound_musicVolume;
  33.     CVarInt* sound_sampleVolume;
  34.  
  35.     CVarInt* sound_sampleRate;
  36.     CVarInt* sound_numEffectChannels;
  37.     CVarInt* sound_chunkSize;
  38. }SoundInfoCVar_t;
  39.  
  40. typedef struct SoundInfoCCmd_s{
  41.     CCmdSoundRestart* sound_restart;
  42. }SoundInfoCCmd_t;
  43.  
  44.  
  45. class SoundInfo{
  46. public:
  47.     static SoundInfoVar_t var;
  48.     static SoundInfoCVar_t cvar;
  49.     static SoundInfoCCmd_t ccmd;
  50.  
  51.     static bool registerCVarsAndCCmds();
  52.     static bool unregisterCVarsAndCCmds();
  53. };
  54.  
  55. #endif    /* __SoundInfo_h__ */
  56.