Planeshift
dummysndctrl.h
Go to the documentation of this file.
1 /*
2 * dummysndctrl.h, Author: Andrea Rizzi <88whacko@gmail.com>
3 *
4 * Copyright (C) 2001-2008 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 
20 
21 #ifndef _DUMMYSNDCTRL_H_
22 #define _DUMMYSNDCTRL_H_
23 
24 //====================================================================================
25 // Project Includes
26 //====================================================================================
27 #include <isoundctrl.h>
28 
29 
35 {
36 public:
37 
38  DummySoundControl(int ID);
39 
40  virtual ~DummySoundControl();
41 
42  virtual int GetID() const;
43 
44  virtual void VolumeDampening(float damp);
45 
46  virtual bool IsDampened() const;
47 
48  virtual float GetVolume() const;
49 
50  virtual void SetVolume(float vol);
51 
52  virtual void Unmute();
53 
54  virtual void Mute();
55 
56  virtual bool GetToggle() const;
57 
58  virtual void SetToggle(bool value);
59 
60  virtual void DeactivateToggle();
61 
62  virtual void ActivateToggle();
63 
64 private:
65  int id;
66  float volume;
67  bool isEnabled;
68  bool dampening;
69 
70 };
71 
72 #endif /*_DUMMYSNDCTRL_H_*/
virtual void Mute()
virtual void VolumeDampening(float damp)
This is just a dummy implementation of iSoundControl.
Definition: dummysndctrl.h:34
DummySoundControl(int ID)
virtual void DeactivateToggle()
virtual ~DummySoundControl()
virtual void ActivateToggle()
virtual void SetVolume(float vol)
virtual bool IsDampened() const
virtual void SetToggle(bool value)
virtual bool GetToggle() const
virtual float GetVolume() const
virtual int GetID() const
virtual void Unmute()