LeviLamina
Loading...
Searching...
No Matches
AudioMixer.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 AudioFrame; }
11// clang-format on
12
13namespace webrtc {
14
16public:
17 // AudioMixer inner types declare
18 // clang-format off
19 class Source;
20 // clang-format on
21
22 // AudioMixer inner types define
23 class Source {
24 public:
25 // Source inner types define
26 enum class AudioFrameInfo : int {
27 KNormal = 0,
28 KMuted = 1,
29 KError = 2,
30 };
31
32 public:
33 // virtual functions
34 // NOLINTBEGIN
35 // vIndex: 0
36 virtual ::webrtc::AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo(int, ::webrtc::AudioFrame*) = 0;
37
38 // vIndex: 1
39 virtual int Ssrc() const = 0;
40
41 // vIndex: 2
42 virtual int PreferredSampleRate() const = 0;
43
44 // vIndex: 3
45 virtual ~Source() = default;
46 // NOLINTEND
47
48 public:
49 // virtual function thunks
50 // NOLINTBEGIN
51
52 // NOLINTEND
53 };
54
55public:
56 // virtual functions
57 // NOLINTBEGIN
58 // vIndex: 3
59 virtual bool AddSource(::webrtc::AudioMixer::Source*) = 0;
60
61 // vIndex: 4
62 virtual void RemoveSource(::webrtc::AudioMixer::Source*) = 0;
63
64 // vIndex: 5
65 virtual void Mix(uint64, ::webrtc::AudioFrame*) = 0;
66
67 // vIndex: 2
68 virtual ~AudioMixer() /*override*/ = default;
69 // NOLINTEND
70
71public:
72 // virtual function thunks
73 // NOLINTBEGIN
74
75 // NOLINTEND
76};
77
78} // namespace webrtc
Definition AudioFrame.h:7
Definition AudioMixer.h:23
Definition AudioMixer.h:15
Definition RefCountInterface.h:10