Planeshift

dummysndctrl.h

Go to the documentation of this file.
00001 /*
00002 * dummysndctrl.h, Author: Andrea Rizzi <[email protected]>
00003 *
00004 * Copyright (C) 2001-2008 Atomic Blue ([email protected], http://www.atomicblue.org) 
00005 *
00006 *
00007 * This program is free software; you can redistribute it and/or
00008 * modify it under the terms of the GNU General Public License
00009 * as published by the Free Software Foundation (version 2 of the License)
00010 * This program is distributed in the hope that it will be useful,
00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 * GNU General Public License for more details.
00014 * You should have received a copy of the GNU General Public License
00015 * along with this program; if not, write to the Free Software
00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00017 *
00018 */
00019 
00020 
00021 #ifndef _DUMMYSNDCTRL_H_
00022 #define _DUMMYSNDCTRL_H_
00023 
00024 //====================================================================================
00025 // Project Includes
00026 //====================================================================================
00027 #include <isoundctrl.h>
00028 
00029 
00034 class DummySoundControl: public iSoundControl
00035 {
00036 public:
00037 
00038     DummySoundControl(int ID);
00039 
00040     virtual ~DummySoundControl();
00041 
00042     virtual int GetID() const;
00043 
00044     virtual void VolumeDampening(float damp);
00045 
00046     virtual bool IsDampened() const;
00047 
00048     virtual float GetVolume() const;
00049 
00050     virtual void SetVolume(float vol);
00051 
00052     virtual void Unmute();
00053 
00054     virtual void Mute();
00055 
00056     virtual bool GetToggle() const;
00057 
00058     virtual void SetToggle(bool value);
00059 
00060     virtual void DeactivateToggle();
00061 
00062     virtual void ActivateToggle();
00063 
00064 private:
00065     int id;         
00066     float volume;   
00067     bool isEnabled; 
00068     bool dampening; 
00069 
00070 };
00071 
00072 #endif /*_DUMMYSNDCTRL_H_*/