Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: media/audio/audio_io.h

Issue 645923002: Add support for audio input mute detection on all platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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() { return false; };
tommi (sloooow) - chröme 2014/10/10 15:54:36 will this be made pure virtual in the next patch s
henrika (OOO until Aug 14) 2014/10/13 12:27:17 Yes it will.
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_
OLDNEW
« no previous file with comments | « no previous file | media/audio/win/audio_low_latency_input_win.h » ('j') | media/audio/win/audio_low_latency_input_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698