install-man1 doesn't need to depend on EXTRAMANPAGES
[gnash.git] / libmedia / AudioInput.h
blobdc8cd08a1f5128ac7d459d67cbd4c1148b3e4770
1 // AudioInput.h: Audio input base class
2 //
3 // Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012
4 // Free Software Foundation, Inc.
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 3 of the License, or
9 // (at your option) any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef GNASH_AUDIOINPUT_H
21 #define GNASH_AUDIOINPUT_H
23 #include <boost/cstdint.hpp> // for C99 int types
24 #include <string>
25 #include "dsodefs.h" //DSOEXPORT
27 namespace gnash {
28 namespace media {
30 /// A class representing a single AudioInput device.
32 /// This interface has almost everything needed for control of the input
33 /// device, but currently no data-fetching functions. These should be
34 /// implemented only when the requirements of AS have been investigated!
35 class AudioInput
38 public:
40 DSOEXPORT AudioInput() {}
42 virtual ~AudioInput() {}
44 virtual void setActivityLevel(double a) = 0;
46 virtual double activityLevel() const = 0;
48 virtual void setGain(double g) = 0;
50 virtual double gain() const = 0;
52 virtual void setIndex(int i) = 0;
54 virtual int index() const = 0;
56 virtual bool muted() = 0;
58 virtual void setName(std::string name) = 0;
60 virtual const std::string& name() const = 0;
62 virtual void setRate(int r) = 0;
64 virtual int rate() const = 0;
66 virtual void setSilenceLevel(double s) = 0;
68 virtual double silenceLevel() const = 0;
70 virtual void setSilenceTimeout(int s) = 0;
72 virtual int silenceTimeout() const = 0;
74 virtual void setUseEchoSuppression(bool e) = 0;
76 virtual bool useEchoSuppression() const = 0;
81 } // gnash.media namespace
82 } // gnash namespace
84 #endif