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