OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
| 13 |
11 #include "webrtc/modules/audio_device/include/audio_device.h" | 14 #include "webrtc/modules/audio_device/include/audio_device.h" |
12 | 15 |
13 namespace webrtc { | 16 namespace webrtc { |
14 | 17 |
15 class FakeAudioDeviceModule : public AudioDeviceModule { | 18 class FakeAudioDeviceModule : public AudioDeviceModule { |
16 public: | 19 public: |
17 FakeAudioDeviceModule() {} | 20 FakeAudioDeviceModule() {} |
18 virtual ~FakeAudioDeviceModule() {} | 21 virtual ~FakeAudioDeviceModule() {} |
19 virtual int32_t AddRef() const { return 0; } | 22 virtual int32_t AddRef() const { return 0; } |
20 virtual int32_t Release() const { return 0; } | 23 virtual int32_t Release() const { return 0; } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 } | 142 } |
140 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) { | 143 virtual int32_t SetPlayoutSampleRate(const uint32_t samplesPerSec) { |
141 return 0; | 144 return 0; |
142 } | 145 } |
143 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; } | 146 virtual int32_t PlayoutSampleRate(uint32_t* samplesPerSec) const { return 0; } |
144 virtual int32_t ResetAudioDevice() { return 0; } | 147 virtual int32_t ResetAudioDevice() { return 0; } |
145 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; } | 148 virtual int32_t SetLoudspeakerStatus(bool enable) { return 0; } |
146 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; } | 149 virtual int32_t GetLoudspeakerStatus(bool* enabled) const { return 0; } |
147 virtual bool BuiltInAECIsAvailable() const { return false; } | 150 virtual bool BuiltInAECIsAvailable() const { return false; } |
148 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } | 151 virtual int32_t EnableBuiltInAEC(bool enable) { return -1; } |
149 virtual bool BuiltInAECIsEnabled() const { return false; } | |
150 virtual bool BuiltInAGCIsAvailable() const { return false; } | 152 virtual bool BuiltInAGCIsAvailable() const { return false; } |
151 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } | 153 virtual int32_t EnableBuiltInAGC(bool enable) { return -1; } |
152 virtual bool BuiltInNSIsAvailable() const { return false; } | 154 virtual bool BuiltInNSIsAvailable() const { return false; } |
153 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } | 155 virtual int32_t EnableBuiltInNS(bool enable) { return -1; } |
154 }; | 156 }; |
155 | 157 |
156 } // namespace webrtc | 158 } // namespace webrtc |
| 159 |
| 160 #endif // WEBRTC_MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
OLD | NEW |