OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 virtual int32_t ResetAudioDevice(); | 139 virtual int32_t ResetAudioDevice(); |
140 | 140 |
141 // Sound Audio Device control (for WinCE only) | 141 // Sound Audio Device control (for WinCE only) |
142 virtual int32_t SoundDeviceControl(unsigned int par1 = 0, | 142 virtual int32_t SoundDeviceControl(unsigned int par1 = 0, |
143 unsigned int par2 = 0, | 143 unsigned int par2 = 0, |
144 unsigned int par3 = 0, | 144 unsigned int par3 = 0, |
145 unsigned int par4 = 0); | 145 unsigned int par4 = 0); |
146 | 146 |
147 // Android only | 147 // Android only |
148 virtual bool BuiltInAECIsAvailable() const; | 148 virtual bool BuiltInAECIsAvailable() const; |
| 149 virtual bool BuiltInAGCIsAvailable() const; |
| 150 virtual bool BuiltInNSIsAvailable() const; |
149 | 151 |
150 // Windows Core Audio and Android only. | 152 // Windows Core Audio and Android only. |
151 virtual int32_t EnableBuiltInAEC(bool enable); | 153 virtual int32_t EnableBuiltInAEC(bool enable); |
| 154 virtual int32_t EnableBuiltInAGC(bool enable); |
| 155 virtual int32_t EnableBuiltInNS(bool enable); |
152 | 156 |
153 // Windows Core Audio only. | 157 // Windows Core Audio only. |
154 virtual bool BuiltInAECIsEnabled() const; | 158 virtual bool BuiltInAECIsEnabled() const; |
155 | 159 |
156 // iOS only. | 160 // iOS only. |
157 // TODO(henrika): add Android support. | 161 // TODO(henrika): add Android support. |
158 virtual int GetPlayoutAudioParameters(AudioParameters* params) const; | 162 virtual int GetPlayoutAudioParameters(AudioParameters* params) const; |
159 virtual int GetRecordAudioParameters(AudioParameters* params) const; | 163 virtual int GetRecordAudioParameters(AudioParameters* params) const; |
160 | 164 |
161 virtual bool PlayoutWarning() const = 0; | 165 virtual bool PlayoutWarning() const = 0; |
162 virtual bool PlayoutError() const = 0; | 166 virtual bool PlayoutError() const = 0; |
163 virtual bool RecordingWarning() const = 0; | 167 virtual bool RecordingWarning() const = 0; |
164 virtual bool RecordingError() const = 0; | 168 virtual bool RecordingError() const = 0; |
165 virtual void ClearPlayoutWarning() = 0; | 169 virtual void ClearPlayoutWarning() = 0; |
166 virtual void ClearPlayoutError() = 0; | 170 virtual void ClearPlayoutError() = 0; |
167 virtual void ClearRecordingWarning() = 0; | 171 virtual void ClearRecordingWarning() = 0; |
168 virtual void ClearRecordingError() = 0; | 172 virtual void ClearRecordingError() = 0; |
169 | 173 |
170 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; | 174 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; |
171 | 175 |
172 virtual ~AudioDeviceGeneric() {} | 176 virtual ~AudioDeviceGeneric() {} |
173 }; | 177 }; |
174 | 178 |
175 } // namespace webrtc | 179 } // namespace webrtc |
176 | 180 |
177 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H | 181 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H |
OLD | NEW |