OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_IO_H_ |
6 #define MEDIA_AUDIO_AUDIO_IO_H_ | 6 #define MEDIA_AUDIO_AUDIO_IO_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "media/base/audio_bus.h" | 9 #include "media/base/audio_bus.h" |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 virtual void SetVolume(double volume) = 0; | 157 virtual void SetVolume(double volume) = 0; |
158 | 158 |
159 // Returns the microphone analog volume, with range [0, max_volume] inclusive. | 159 // Returns the microphone analog volume, with range [0, max_volume] inclusive. |
160 virtual double GetVolume() = 0; | 160 virtual double GetVolume() = 0; |
161 | 161 |
162 // Sets the Automatic Gain Control (AGC) state. | 162 // Sets the Automatic Gain Control (AGC) state. |
163 virtual void SetAutomaticGainControl(bool enabled) = 0; | 163 virtual void SetAutomaticGainControl(bool enabled) = 0; |
164 | 164 |
165 // Returns the Automatic Gain Control (AGC) state. | 165 // Returns the Automatic Gain Control (AGC) state. |
166 virtual bool GetAutomaticGainControl() = 0; | 166 virtual bool GetAutomaticGainControl() = 0; |
| 167 |
| 168 // Returns the current muting state for the microphone. |
| 169 virtual bool IsMuted() = 0; |
167 }; | 170 }; |
168 | 171 |
169 } // namespace media | 172 } // namespace media |
170 | 173 |
171 #endif // MEDIA_AUDIO_AUDIO_IO_H_ | 174 #endif // MEDIA_AUDIO_AUDIO_IO_H_ |
OLD | NEW |