home *** CD-ROM | disk | FTP | other *** search
- #ifndef __SoundInfo_h__
- #define __SoundInfo_h__
-
- #include "SubSystemInfo.h"
- #include "CVar.h"
- #include "SoundCCmds.h"
-
-
- typedef struct SoundInfoVar_s{
- bool playMusic;
- bool playSamples;
- bool enabled;
- bool stereo;
-
- int musicVolume;
- int sampleVolume;
-
- int maxDistance;
-
- int sampleRate;
- int numEffectChannels;
- int chunkSize;
-
- }SoundInfoVar_t;
-
- typedef struct SoundInfoCVar_s{
- CVarBool* sound_playMusic;
- CVarBool* sound_playSamples;
- CVarBool* sound_enabled;
- CVarBool* sound_stereo;
-
- CVarInt* sound_musicVolume;
- CVarInt* sound_sampleVolume;
-
- CVarInt* sound_sampleRate;
- CVarInt* sound_numEffectChannels;
- CVarInt* sound_chunkSize;
- }SoundInfoCVar_t;
-
- typedef struct SoundInfoCCmd_s{
- CCmdSoundRestart* sound_restart;
- }SoundInfoCCmd_t;
-
-
- class SoundInfo{
- public:
- static SoundInfoVar_t var;
- static SoundInfoCVar_t cvar;
- static SoundInfoCCmd_t ccmd;
-
- static bool registerCVarsAndCCmds();
- static bool unregisterCVarsAndCCmds();
- };
-
- #endif /* __SoundInfo_h__ */
-