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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Android only | 157 // Android only |
158 virtual bool BuiltInAECIsAvailable() const; | 158 virtual bool BuiltInAECIsAvailable() const; |
159 virtual bool BuiltInAGCIsAvailable() const; | 159 virtual bool BuiltInAGCIsAvailable() const; |
160 virtual bool BuiltInNSIsAvailable() const; | 160 virtual bool BuiltInNSIsAvailable() const; |
161 | 161 |
162 // Windows Core Audio and Android only. | 162 // Windows Core Audio and Android only. |
163 virtual int32_t EnableBuiltInAEC(bool enable); | 163 virtual int32_t EnableBuiltInAEC(bool enable); |
164 virtual int32_t EnableBuiltInAGC(bool enable); | 164 virtual int32_t EnableBuiltInAGC(bool enable); |
165 virtual int32_t EnableBuiltInNS(bool enable); | 165 virtual int32_t EnableBuiltInNS(bool enable); |
166 | 166 |
167 // Windows Core Audio only. | |
168 virtual bool BuiltInAECIsEnabled() const; | |
169 | |
170 // iOS only. | 167 // iOS only. |
171 // TODO(henrika): add Android support. | 168 // TODO(henrika): add Android support. |
| 169 #if defined(WEBRTC_IOS) |
172 virtual int GetPlayoutAudioParameters(AudioParameters* params) const; | 170 virtual int GetPlayoutAudioParameters(AudioParameters* params) const; |
173 virtual int GetRecordAudioParameters(AudioParameters* params) const; | 171 virtual int GetRecordAudioParameters(AudioParameters* params) const; |
| 172 #endif // WEBRTC_IOS |
174 | 173 |
175 virtual bool PlayoutWarning() const = 0; | 174 virtual bool PlayoutWarning() const = 0; |
176 virtual bool PlayoutError() const = 0; | 175 virtual bool PlayoutError() const = 0; |
177 virtual bool RecordingWarning() const = 0; | 176 virtual bool RecordingWarning() const = 0; |
178 virtual bool RecordingError() const = 0; | 177 virtual bool RecordingError() const = 0; |
179 virtual void ClearPlayoutWarning() = 0; | 178 virtual void ClearPlayoutWarning() = 0; |
180 virtual void ClearPlayoutError() = 0; | 179 virtual void ClearPlayoutError() = 0; |
181 virtual void ClearRecordingWarning() = 0; | 180 virtual void ClearRecordingWarning() = 0; |
182 virtual void ClearRecordingError() = 0; | 181 virtual void ClearRecordingError() = 0; |
183 | 182 |
184 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; | 183 virtual void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) = 0; |
185 | 184 |
186 virtual ~AudioDeviceGeneric() {} | 185 virtual ~AudioDeviceGeneric() {} |
187 }; | 186 }; |
188 | 187 |
189 } // namespace webrtc | 188 } // namespace webrtc |
190 | 189 |
191 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H | 190 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_GENERIC_H |
OLD | NEW |