LeviLamina
Loading...
Searching...
No Matches
AudioDeviceModule.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/RefCountInterface.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace webrtc { class AudioTransport; }
11// clang-format on
12
13namespace webrtc {
14
16public:
17 // AudioDeviceModule inner types declare
18 // clang-format off
19 struct Stats;
20 // clang-format on
21
22 // AudioDeviceModule inner types define
23 enum class AudioLayer : int {
24 KPlatformDefaultAudio = 0,
25 KWindowsCoreAudio = 1,
26 KWindowsCoreAudio2 = 2,
27 KLinuxAlsaAudio = 3,
28 KLinuxPulseAudio = 4,
29 KAndroidJavaAudio = 5,
30 KAndroidOpenSLESAudio = 6,
31 KAndroidJavaInputAndOpenSLESOutputAudio = 7,
32 KAndroidAAudioAudio = 8,
33 KAndroidJavaInputAndAAudioOutputAudio = 9,
34 KDummyAudio = 10,
35 };
36
37 enum class WindowsDeviceType : int {
38 KDefaultCommunicationDevice = -1,
39 KDefaultDevice = -2,
40 };
41
42 struct Stats {
43 public:
44 // member variables
45 // NOLINTBEGIN
51 // NOLINTEND
52
53 public:
54 // prevent constructor by default
55 Stats& operator=(Stats const&);
56 Stats(Stats const&);
57 Stats();
58 };
59
60public:
61 // virtual functions
62 // NOLINTBEGIN
63 // vIndex: 3
64 virtual int ActiveAudioLayer(::webrtc::AudioDeviceModule::AudioLayer*) const = 0;
65
66 // vIndex: 4
67 virtual int RegisterAudioCallback(::webrtc::AudioTransport*) = 0;
68
69 // vIndex: 5
70 virtual int Init() = 0;
71
72 // vIndex: 6
73 virtual int Terminate() = 0;
74
75 // vIndex: 7
76 virtual bool Initialized() const = 0;
77
78 // vIndex: 8
79 virtual short PlayoutDevices() = 0;
80
81 // vIndex: 9
82 virtual short RecordingDevices() = 0;
83
84 // vIndex: 10
85 virtual int PlayoutDeviceName(ushort, char*, char*) = 0;
86
87 // vIndex: 11
88 virtual int RecordingDeviceName(ushort, char*, char*) = 0;
89
90 // vIndex: 13
91 virtual int SetPlayoutDevice(ushort) = 0;
92
93 // vIndex: 12
94 virtual int SetPlayoutDevice(::webrtc::AudioDeviceModule::WindowsDeviceType) = 0;
95
96 // vIndex: 15
97 virtual int SetRecordingDevice(ushort) = 0;
98
99 // vIndex: 14
100 virtual int SetRecordingDevice(::webrtc::AudioDeviceModule::WindowsDeviceType) = 0;
101
102 // vIndex: 16
103 virtual int PlayoutIsAvailable(bool*) = 0;
104
105 // vIndex: 17
106 virtual int InitPlayout() = 0;
107
108 // vIndex: 18
109 virtual bool PlayoutIsInitialized() const = 0;
110
111 // vIndex: 19
112 virtual int RecordingIsAvailable(bool*) = 0;
113
114 // vIndex: 20
115 virtual int InitRecording() = 0;
116
117 // vIndex: 21
118 virtual bool RecordingIsInitialized() const = 0;
119
120 // vIndex: 22
121 virtual int StartPlayout() = 0;
122
123 // vIndex: 23
124 virtual int StopPlayout() = 0;
125
126 // vIndex: 24
127 virtual bool Playing() const = 0;
128
129 // vIndex: 25
130 virtual int StartRecording() = 0;
131
132 // vIndex: 26
133 virtual int StopRecording() = 0;
134
135 // vIndex: 27
136 virtual bool Recording() const = 0;
137
138 // vIndex: 28
139 virtual int InitSpeaker() = 0;
140
141 // vIndex: 29
142 virtual bool SpeakerIsInitialized() const = 0;
143
144 // vIndex: 30
145 virtual int InitMicrophone() = 0;
146
147 // vIndex: 31
148 virtual bool MicrophoneIsInitialized() const = 0;
149
150 // vIndex: 32
151 virtual int SpeakerVolumeIsAvailable(bool*) = 0;
152
153 // vIndex: 33
154 virtual int SetSpeakerVolume(uint) = 0;
155
156 // vIndex: 34
157 virtual int SpeakerVolume(uint*) const = 0;
158
159 // vIndex: 35
160 virtual int MaxSpeakerVolume(uint*) const = 0;
161
162 // vIndex: 36
163 virtual int MinSpeakerVolume(uint*) const = 0;
164
165 // vIndex: 37
166 virtual int MicrophoneVolumeIsAvailable(bool*) = 0;
167
168 // vIndex: 38
169 virtual int SetMicrophoneVolume(uint) = 0;
170
171 // vIndex: 39
172 virtual int MicrophoneVolume(uint*) const = 0;
173
174 // vIndex: 40
175 virtual int MaxMicrophoneVolume(uint*) const = 0;
176
177 // vIndex: 41
178 virtual int MinMicrophoneVolume(uint*) const = 0;
179
180 // vIndex: 42
181 virtual int SpeakerMuteIsAvailable(bool*) = 0;
182
183 // vIndex: 43
184 virtual int SetSpeakerMute(bool) = 0;
185
186 // vIndex: 44
187 virtual int SpeakerMute(bool*) const = 0;
188
189 // vIndex: 45
190 virtual int MicrophoneMuteIsAvailable(bool*) = 0;
191
192 // vIndex: 46
193 virtual int SetMicrophoneMute(bool) = 0;
194
195 // vIndex: 47
196 virtual int MicrophoneMute(bool*) const = 0;
197
198 // vIndex: 48
199 virtual int StereoPlayoutIsAvailable(bool*) const = 0;
200
201 // vIndex: 49
202 virtual int SetStereoPlayout(bool) = 0;
203
204 // vIndex: 50
205 virtual int StereoPlayout(bool*) const = 0;
206
207 // vIndex: 51
208 virtual int StereoRecordingIsAvailable(bool*) const = 0;
209
210 // vIndex: 52
211 virtual int SetStereoRecording(bool) = 0;
212
213 // vIndex: 53
214 virtual int StereoRecording(bool*) const = 0;
215
216 // vIndex: 54
217 virtual int PlayoutDelay(ushort*) const = 0;
218
219 // vIndex: 55
220 virtual bool BuiltInAECIsAvailable() const = 0;
221
222 // vIndex: 56
223 virtual bool BuiltInAGCIsAvailable() const = 0;
224
225 // vIndex: 57
226 virtual bool BuiltInNSIsAvailable() const = 0;
227
228 // vIndex: 58
229 virtual int EnableBuiltInAEC(bool) = 0;
230
231 // vIndex: 59
232 virtual int EnableBuiltInAGC(bool) = 0;
233
234 // vIndex: 60
235 virtual int EnableBuiltInNS(bool) = 0;
236
237 // vIndex: 61
238 virtual int GetPlayoutUnderrunCount() const;
239
240 // vIndex: 62
241 virtual ::std::optional<::webrtc::AudioDeviceModule::Stats> GetStats() const;
242
243 // vIndex: 2
244 virtual ~AudioDeviceModule() /*override*/ = default;
245 // NOLINTEND
246
247public:
248 // destructor thunk
249 // NOLINTBEGIN
250
251 // NOLINTEND
252
253public:
254 // virtual function thunks
255 // NOLINTBEGIN
256
257 // NOLINTEND
258};
259
260} // namespace webrtc
Definition AudioDeviceModule.h:15
Definition AudioTransport.h:7
Definition RefCountInterface.h:10
Definition Alias.h:14
Definition AudioDeviceModule.h:42