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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override; | 175 int32_t SetRecordingSampleRate(const uint32_t samplesPerSec) override; |
176 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override; | 176 int32_t RecordingSampleRate(uint32_t* samplesPerSec) const override; |
177 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override; | 177 int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) override; |
178 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override; | 178 int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const override; |
179 | 179 |
180 // Mobile device specific functions | 180 // Mobile device specific functions |
181 int32_t ResetAudioDevice() override; | 181 int32_t ResetAudioDevice() override; |
182 int32_t SetLoudspeakerStatus(bool enable) override; | 182 int32_t SetLoudspeakerStatus(bool enable) override; |
183 int32_t GetLoudspeakerStatus(bool* enabled) const override; | 183 int32_t GetLoudspeakerStatus(bool* enabled) const override; |
184 | 184 |
| 185 bool BuiltInAECIsEnabled() const override; |
185 bool BuiltInAECIsAvailable() const override; | 186 bool BuiltInAECIsAvailable() const override; |
186 | |
187 int32_t EnableBuiltInAEC(bool enable) override; | 187 int32_t EnableBuiltInAEC(bool enable) override; |
188 bool BuiltInAECIsEnabled() const override; | 188 bool BuiltInAGCIsAvailable() const override; |
| 189 int32_t EnableBuiltInAGC(bool enable) override; |
| 190 bool BuiltInNSIsAvailable() const override; |
| 191 int32_t EnableBuiltInNS(bool enable) override; |
189 | 192 |
190 int GetPlayoutAudioParameters(AudioParameters* params) const override; | 193 int GetPlayoutAudioParameters(AudioParameters* params) const override; |
191 int GetRecordAudioParameters(AudioParameters* params) const override; | 194 int GetRecordAudioParameters(AudioParameters* params) const override; |
192 | 195 |
193 int32_t Id() { return _id; } | 196 int32_t Id() { return _id; } |
194 #if defined(WEBRTC_ANDROID) | 197 #if defined(WEBRTC_ANDROID) |
195 // Only use this acccessor for test purposes on Android. | 198 // Only use this acccessor for test purposes on Android. |
196 AudioManager* GetAndroidAudioManagerForTest() { | 199 AudioManager* GetAndroidAudioManagerForTest() { |
197 return _audioManagerAndroid.get(); | 200 return _audioManagerAndroid.get(); |
198 } | 201 } |
(...skipping 22 matching lines...) Expand all Loading... |
221 PlatformType _platformType; | 224 PlatformType _platformType; |
222 bool _initialized; | 225 bool _initialized; |
223 mutable ErrorCode _lastError; | 226 mutable ErrorCode _lastError; |
224 }; | 227 }; |
225 | 228 |
226 } // namespace webrtc | 229 } // namespace webrtc |
227 | 230 |
228 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) | 231 #endif // defined(WEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE) |
229 | 232 |
230 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ | 233 #endif // WEBRTC_MODULES_INTERFACE_AUDIO_DEVICE_IMPL_H_ |
OLD | NEW |