25 #ifndef _SOUND_CONTROL_H_    26 #define _SOUND_CONTROL_H_    33 #include <csutil/set.h>    38 #include <isoundctrl.h>   101     virtual int GetID() 
const;
   108     virtual void VolumeDampening(
float damp);
   114     virtual bool IsDampened() 
const;
   119     virtual float GetVolume() 
const;
   125     virtual void SetVolume(
float vol);
   130     virtual void Unmute();
   141     virtual bool GetToggle() 
const;
   147     virtual void SetToggle(
bool value);
   153     virtual void DeactivateToggle();
   159     virtual void ActivateToggle(); 
   169     csSet<iSoundControlListener*> listeners;   
   174     void CallListeners();
 virtual void OnSoundChange(SoundControl *sndCtrl)=0
This function is called everytime the volume or the toggle change. 
 
Interface to implement to handle SoundControl's events. 
 
A Volume and Sound control class.