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 MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ | 11 #ifndef MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
12 #define MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ | 12 #define MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
13 | 13 |
14 #include "modules/audio_device/include/audio_device.h" | 14 #include "modules/audio_device/include/audio_device.h" |
15 | 15 |
16 namespace webrtc { | 16 namespace webrtc { |
17 | 17 |
18 class FakeAudioDeviceModule : public AudioDeviceModule { | 18 class FakeAudioDeviceModule : public AudioDeviceModule { |
19 public: | 19 public: |
20 FakeAudioDeviceModule() {} | 20 FakeAudioDeviceModule() {} |
21 virtual ~FakeAudioDeviceModule() {} | 21 virtual ~FakeAudioDeviceModule() {} |
22 virtual int32_t AddRef() const { return 0; } | 22 virtual int32_t AddRef() const { return 0; } |
23 virtual int32_t Release() const { return 0; } | 23 virtual int32_t Release() const { return 0; } |
24 | 24 |
25 private: | 25 private: |
26 virtual int32_t RegisterEventObserver(AudioDeviceObserver* eventCallback) { | |
27 return 0; | |
28 } | |
29 virtual int32_t RegisterAudioCallback(AudioTransport* audioCallback) { | 26 virtual int32_t RegisterAudioCallback(AudioTransport* audioCallback) { |
30 return 0; | 27 return 0; |
31 } | 28 } |
32 virtual int32_t Init() { return 0; } | 29 virtual int32_t Init() { return 0; } |
33 virtual int32_t InitSpeaker() { return 0; } | 30 virtual int32_t InitSpeaker() { return 0; } |
34 virtual int32_t SetPlayoutDevice(uint16_t index) { return 0; } | 31 virtual int32_t SetPlayoutDevice(uint16_t index) { return 0; } |
35 virtual int32_t SetPlayoutDevice(WindowsDeviceType device) { return 0; } | 32 virtual int32_t SetPlayoutDevice(WindowsDeviceType device) { return 0; } |
36 virtual int32_t SetStereoPlayout(bool enable) { return 0; } | 33 virtual int32_t SetStereoPlayout(bool enable) { return 0; } |
37 virtual int32_t StopPlayout() { return 0; } | 34 virtual int32_t StopPlayout() { return 0; } |
38 virtual int32_t InitMicrophone() { return 0; } | 35 virtual int32_t InitMicrophone() { return 0; } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 #endif // WEBRTC_IOS | 144 #endif // WEBRTC_IOS |
148 | 145 |
149 private: | 146 private: |
150 bool uses_default_module_implementation_ = false; | 147 bool uses_default_module_implementation_ = false; |
151 bool turn_off_module_callbacks_ = false; | 148 bool turn_off_module_callbacks_ = false; |
152 }; | 149 }; |
153 | 150 |
154 } // namespace webrtc | 151 } // namespace webrtc |
155 | 152 |
156 #endif // MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ | 153 #endif // MODULES_AUDIO_DEVICE_INCLUDE_FAKE_AUDIO_DEVICE_H_ |
OLD | NEW |