Gnash 0.8.10dev
|
00001 // AudioInput.h: Audio input base class 00002 // 00003 // Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 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 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program; if not, write to the Free Software 00017 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 #ifndef GNASH_AUDIOINPUT_H 00020 #define GNASH_AUDIOINPUT_H 00021 00022 #include <boost/cstdint.hpp> // for C99 int types 00023 #include <string> 00024 #include "dsodefs.h" //DSOEXPORT 00025 00026 namespace gnash { 00027 namespace media { 00028 00030 // 00034 class AudioInput 00035 { 00036 00037 public: 00038 00039 DSOEXPORT AudioInput() {} 00040 00041 virtual ~AudioInput() {} 00042 00043 virtual void setActivityLevel(double a) = 0; 00044 00045 virtual double activityLevel() const = 0; 00046 00047 virtual void setGain(double g) = 0; 00048 00049 virtual double gain() const = 0; 00050 00051 virtual void setIndex(int i) = 0; 00052 00053 virtual int index() const = 0; 00054 00055 virtual bool muted() = 0; 00056 00057 virtual void setName(std::string name) = 0; 00058 00059 virtual const std::string& name() const = 0; 00060 00061 virtual void setRate(int r) = 0; 00062 00063 virtual int rate() const = 0; 00064 00065 virtual void setSilenceLevel(double s) = 0; 00066 00067 virtual double silenceLevel() const = 0; 00068 00069 virtual void setSilenceTimeout(int s) = 0; 00070 00071 virtual int silenceTimeout() const = 0; 00072 00073 virtual void setUseEchoSuppression(bool e) = 0; 00074 00075 virtual bool useEchoSuppression() const = 0; 00076 00077 }; 00078 00079 00080 } // gnash.media namespace 00081 } // gnash namespace 00082 00083 #endif