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 |
11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H | 11 #ifndef WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H |
12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H | 12 #define WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H |
13 | 13 |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 | 15 |
16 #include "webrtc/modules/audio_device/audio_device_generic.h" | 16 #include "webrtc/modules/audio_device/audio_device_generic.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 class AudioDeviceDummy : public AudioDeviceGeneric { | 20 class AudioDeviceDummy : public AudioDeviceGeneric { |
21 public: | 21 public: |
22 AudioDeviceDummy(const int32_t id) {} | 22 AudioDeviceDummy(const int32_t id) {} |
23 virtual ~AudioDeviceDummy() {} | 23 virtual ~AudioDeviceDummy() {} |
24 | 24 |
25 // Retrieve the currently utilized audio layer | 25 // Retrieve the currently utilized audio layer |
26 int32_t ActiveAudioLayer( | 26 int32_t ActiveAudioLayer( |
27 AudioDeviceModule::AudioLayer& audioLayer) const override; | 27 AudioDeviceModule::AudioLayer& audioLayer) const override; |
28 | 28 |
29 // Main initializaton and termination | 29 // Main initializaton and termination |
30 int32_t Init() override; | 30 InitStatus Init() override; |
31 int32_t Terminate() override; | 31 int32_t Terminate() override; |
32 bool Initialized() const override; | 32 bool Initialized() const override; |
33 | 33 |
34 // Device enumeration | 34 // Device enumeration |
35 int16_t PlayoutDevices() override; | 35 int16_t PlayoutDevices() override; |
36 int16_t RecordingDevices() override; | 36 int16_t RecordingDevices() override; |
37 int32_t PlayoutDeviceName(uint16_t index, | 37 int32_t PlayoutDeviceName(uint16_t index, |
38 char name[kAdmMaxDeviceNameSize], | 38 char name[kAdmMaxDeviceNameSize], |
39 char guid[kAdmMaxGuidSize]) override; | 39 char guid[kAdmMaxGuidSize]) override; |
40 int32_t RecordingDeviceName(uint16_t index, | 40 int32_t RecordingDeviceName(uint16_t index, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void ClearPlayoutError() override; | 138 void ClearPlayoutError() override; |
139 void ClearRecordingWarning() override; | 139 void ClearRecordingWarning() override; |
140 void ClearRecordingError() override; | 140 void ClearRecordingError() override; |
141 | 141 |
142 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; | 142 void AttachAudioBuffer(AudioDeviceBuffer* audioBuffer) override; |
143 }; | 143 }; |
144 | 144 |
145 } // namespace webrtc | 145 } // namespace webrtc |
146 | 146 |
147 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H | 147 #endif // WEBRTC_AUDIO_DEVICE_AUDIO_DEVICE_DUMMY_H |
OLD | NEW |