OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Gets the currently used (active) audio device layer. | 85 // Gets the currently used (active) audio device layer. |
86 virtual int GetAudioDeviceLayer(AudioLayers& audioLayer) = 0; | 86 virtual int GetAudioDeviceLayer(AudioLayers& audioLayer) = 0; |
87 | 87 |
88 // Native sample rate controls (samples/sec) | 88 // Native sample rate controls (samples/sec) |
89 virtual int SetRecordingSampleRate(unsigned int samples_per_sec) = 0; | 89 virtual int SetRecordingSampleRate(unsigned int samples_per_sec) = 0; |
90 virtual int RecordingSampleRate(unsigned int* samples_per_sec) const = 0; | 90 virtual int RecordingSampleRate(unsigned int* samples_per_sec) const = 0; |
91 virtual int SetPlayoutSampleRate(unsigned int samples_per_sec) = 0; | 91 virtual int SetPlayoutSampleRate(unsigned int samples_per_sec) = 0; |
92 virtual int PlayoutSampleRate(unsigned int* samples_per_sec) const = 0; | 92 virtual int PlayoutSampleRate(unsigned int* samples_per_sec) const = 0; |
93 | 93 |
| 94 // Queries and controls platform audio effects on Android devices. |
94 virtual bool BuiltInAECIsAvailable() const = 0; | 95 virtual bool BuiltInAECIsAvailable() const = 0; |
95 virtual int EnableBuiltInAEC(bool enable) = 0; | 96 virtual int EnableBuiltInAEC(bool enable) = 0; |
| 97 virtual bool BuiltInAGCIsAvailable() const = 0; |
| 98 virtual int EnableBuiltInAGC(bool enable) = 0; |
| 99 virtual bool BuiltInNSIsAvailable() const = 0; |
| 100 virtual int EnableBuiltInNS(bool enable) = 0; |
96 | 101 |
97 protected: | 102 protected: |
98 VoEHardware() {} | 103 VoEHardware() {} |
99 virtual ~VoEHardware() {} | 104 virtual ~VoEHardware() {} |
100 }; | 105 }; |
101 | 106 |
102 } // namespace webrtc | 107 } // namespace webrtc |
103 | 108 |
104 #endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_H | 109 #endif // WEBRTC_VOICE_ENGINE_VOE_HARDWARE_H |
OLD | NEW |