mediasoup 3.11.23 → 3.11.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node/lib/Worker.js +1 -1
- package/node/lib/index.d.ts +1 -1
- package/node/lib/index.js +1 -1
- package/package.json +3 -3
- package/worker/include/FBS/activeSpeakerObserver_generated.h +157 -0
- package/worker/include/FBS/audioLevelObserver_generated.h +272 -0
- package/worker/include/FBS/common_generated.h +463 -0
- package/worker/include/FBS/consumer_generated.h +2390 -0
- package/worker/include/FBS/dataConsumer_generated.h +953 -0
- package/worker/include/FBS/dataProducer_generated.h +662 -0
- package/worker/include/FBS/directTransport_generated.h +298 -0
- package/worker/include/FBS/log_generated.h +95 -0
- package/worker/include/FBS/message_generated.h +362 -0
- package/worker/include/FBS/notification_generated.h +867 -0
- package/worker/include/FBS/pipeTransport_generated.h +503 -0
- package/worker/include/FBS/plainTransport_generated.h +785 -0
- package/worker/include/FBS/producer_generated.h +1331 -0
- package/worker/include/FBS/request_generated.h +1368 -0
- package/worker/include/FBS/response_generated.h +859 -0
- package/worker/include/FBS/router_generated.h +925 -0
- package/worker/include/FBS/rtpObserver_generated.h +168 -0
- package/worker/include/FBS/rtpParameters_generated.h +1853 -0
- package/worker/include/FBS/rtpStream_generated.h +1273 -0
- package/worker/include/FBS/rtxStream_generated.h +237 -0
- package/worker/include/FBS/sctpAssociation_generated.h +85 -0
- package/worker/include/FBS/sctpParameters_generated.h +328 -0
- package/worker/include/FBS/transport_generated.h +3558 -0
- package/worker/include/FBS/webRtcServer_generated.h +571 -0
- package/worker/include/FBS/webRtcTransport_generated.h +1722 -0
- package/worker/include/FBS/worker_generated.h +879 -0
- package/worker/src/RTC/RtpRetransmissionBuffer.cpp +1 -1
- package/worker/src/RTC/SeqManager.cpp +8 -7
package/node/lib/Worker.js
CHANGED
|
@@ -90,7 +90,7 @@ class Worker extends EnhancedEventEmitter_1.EnhancedEventEmitter {
|
|
|
90
90
|
// options
|
|
91
91
|
{
|
|
92
92
|
env: {
|
|
93
|
-
MEDIASOUP_VERSION: '3.11.
|
|
93
|
+
MEDIASOUP_VERSION: '3.11.24',
|
|
94
94
|
// Let the worker process inherit all environment variables, useful
|
|
95
95
|
// if a custom and not in the path GCC is used so the user can set
|
|
96
96
|
// LD_LIBRARY_PATH environment variable for runtime.
|
package/node/lib/index.d.ts
CHANGED
package/node/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mediasoup",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.24",
|
|
4
4
|
"description": "Cutting Edge WebRTC Video Conferencing",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"@types/jest": "^29.5.0",
|
|
96
96
|
"@types/node": "^18.15.11",
|
|
97
97
|
"@types/uuid": "^9.0.1",
|
|
98
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
99
|
-
"@typescript-eslint/parser": "^5.
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
99
|
+
"@typescript-eslint/parser": "^5.59.0",
|
|
100
100
|
"eslint": "^8.38.0",
|
|
101
101
|
"eslint-plugin-jest": "^27.2.1",
|
|
102
102
|
"jest": "^29.5.0",
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
#ifndef FLATBUFFERS_GENERATED_ACTIVESPEAKEROBSERVER_FBS_ACTIVESPEAKEROBSERVER_H_
|
|
5
|
+
#define FLATBUFFERS_GENERATED_ACTIVESPEAKEROBSERVER_FBS_ACTIVESPEAKEROBSERVER_H_
|
|
6
|
+
|
|
7
|
+
#include "flatbuffers/flatbuffers.h"
|
|
8
|
+
|
|
9
|
+
// Ensure the included flatbuffers.h is the same version as when this file was
|
|
10
|
+
// generated, otherwise it may not be compatible.
|
|
11
|
+
static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
|
|
12
|
+
FLATBUFFERS_VERSION_MINOR == 3 &&
|
|
13
|
+
FLATBUFFERS_VERSION_REVISION == 3,
|
|
14
|
+
"Non-compatible flatbuffers version included");
|
|
15
|
+
|
|
16
|
+
namespace FBS {
|
|
17
|
+
namespace ActiveSpeakerObserver {
|
|
18
|
+
|
|
19
|
+
struct ActiveSpeakerObserverOptions;
|
|
20
|
+
struct ActiveSpeakerObserverOptionsBuilder;
|
|
21
|
+
|
|
22
|
+
struct DominantSpeakerNotification;
|
|
23
|
+
struct DominantSpeakerNotificationBuilder;
|
|
24
|
+
|
|
25
|
+
inline const ::flatbuffers::TypeTable *ActiveSpeakerObserverOptionsTypeTable();
|
|
26
|
+
|
|
27
|
+
inline const ::flatbuffers::TypeTable *DominantSpeakerNotificationTypeTable();
|
|
28
|
+
|
|
29
|
+
struct ActiveSpeakerObserverOptions FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
30
|
+
typedef ActiveSpeakerObserverOptionsBuilder Builder;
|
|
31
|
+
static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
|
|
32
|
+
return ActiveSpeakerObserverOptionsTypeTable();
|
|
33
|
+
}
|
|
34
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
35
|
+
VT_INTERVAL = 4
|
|
36
|
+
};
|
|
37
|
+
uint16_t interval() const {
|
|
38
|
+
return GetField<uint16_t>(VT_INTERVAL, 0);
|
|
39
|
+
}
|
|
40
|
+
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
41
|
+
return VerifyTableStart(verifier) &&
|
|
42
|
+
VerifyField<uint16_t>(verifier, VT_INTERVAL, 2) &&
|
|
43
|
+
verifier.EndTable();
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
struct ActiveSpeakerObserverOptionsBuilder {
|
|
48
|
+
typedef ActiveSpeakerObserverOptions Table;
|
|
49
|
+
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
50
|
+
::flatbuffers::uoffset_t start_;
|
|
51
|
+
void add_interval(uint16_t interval) {
|
|
52
|
+
fbb_.AddElement<uint16_t>(ActiveSpeakerObserverOptions::VT_INTERVAL, interval, 0);
|
|
53
|
+
}
|
|
54
|
+
explicit ActiveSpeakerObserverOptionsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
|
|
55
|
+
: fbb_(_fbb) {
|
|
56
|
+
start_ = fbb_.StartTable();
|
|
57
|
+
}
|
|
58
|
+
::flatbuffers::Offset<ActiveSpeakerObserverOptions> Finish() {
|
|
59
|
+
const auto end = fbb_.EndTable(start_);
|
|
60
|
+
auto o = ::flatbuffers::Offset<ActiveSpeakerObserverOptions>(end);
|
|
61
|
+
return o;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
inline ::flatbuffers::Offset<ActiveSpeakerObserverOptions> CreateActiveSpeakerObserverOptions(
|
|
66
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
67
|
+
uint16_t interval = 0) {
|
|
68
|
+
ActiveSpeakerObserverOptionsBuilder builder_(_fbb);
|
|
69
|
+
builder_.add_interval(interval);
|
|
70
|
+
return builder_.Finish();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
struct DominantSpeakerNotification FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
74
|
+
typedef DominantSpeakerNotificationBuilder Builder;
|
|
75
|
+
static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
|
|
76
|
+
return DominantSpeakerNotificationTypeTable();
|
|
77
|
+
}
|
|
78
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
79
|
+
VT_PRODUCERID = 4
|
|
80
|
+
};
|
|
81
|
+
const ::flatbuffers::String *producerId() const {
|
|
82
|
+
return GetPointer<const ::flatbuffers::String *>(VT_PRODUCERID);
|
|
83
|
+
}
|
|
84
|
+
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
85
|
+
return VerifyTableStart(verifier) &&
|
|
86
|
+
VerifyOffsetRequired(verifier, VT_PRODUCERID) &&
|
|
87
|
+
verifier.VerifyString(producerId()) &&
|
|
88
|
+
verifier.EndTable();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
struct DominantSpeakerNotificationBuilder {
|
|
93
|
+
typedef DominantSpeakerNotification Table;
|
|
94
|
+
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
95
|
+
::flatbuffers::uoffset_t start_;
|
|
96
|
+
void add_producerId(::flatbuffers::Offset<::flatbuffers::String> producerId) {
|
|
97
|
+
fbb_.AddOffset(DominantSpeakerNotification::VT_PRODUCERID, producerId);
|
|
98
|
+
}
|
|
99
|
+
explicit DominantSpeakerNotificationBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
|
|
100
|
+
: fbb_(_fbb) {
|
|
101
|
+
start_ = fbb_.StartTable();
|
|
102
|
+
}
|
|
103
|
+
::flatbuffers::Offset<DominantSpeakerNotification> Finish() {
|
|
104
|
+
const auto end = fbb_.EndTable(start_);
|
|
105
|
+
auto o = ::flatbuffers::Offset<DominantSpeakerNotification>(end);
|
|
106
|
+
fbb_.Required(o, DominantSpeakerNotification::VT_PRODUCERID);
|
|
107
|
+
return o;
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
inline ::flatbuffers::Offset<DominantSpeakerNotification> CreateDominantSpeakerNotification(
|
|
112
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
113
|
+
::flatbuffers::Offset<::flatbuffers::String> producerId = 0) {
|
|
114
|
+
DominantSpeakerNotificationBuilder builder_(_fbb);
|
|
115
|
+
builder_.add_producerId(producerId);
|
|
116
|
+
return builder_.Finish();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
inline ::flatbuffers::Offset<DominantSpeakerNotification> CreateDominantSpeakerNotificationDirect(
|
|
120
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
121
|
+
const char *producerId = nullptr) {
|
|
122
|
+
auto producerId__ = producerId ? _fbb.CreateString(producerId) : 0;
|
|
123
|
+
return FBS::ActiveSpeakerObserver::CreateDominantSpeakerNotification(
|
|
124
|
+
_fbb,
|
|
125
|
+
producerId__);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
inline const ::flatbuffers::TypeTable *ActiveSpeakerObserverOptionsTypeTable() {
|
|
129
|
+
static const ::flatbuffers::TypeCode type_codes[] = {
|
|
130
|
+
{ ::flatbuffers::ET_USHORT, 0, -1 }
|
|
131
|
+
};
|
|
132
|
+
static const char * const names[] = {
|
|
133
|
+
"interval"
|
|
134
|
+
};
|
|
135
|
+
static const ::flatbuffers::TypeTable tt = {
|
|
136
|
+
::flatbuffers::ST_TABLE, 1, type_codes, nullptr, nullptr, nullptr, names
|
|
137
|
+
};
|
|
138
|
+
return &tt;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
inline const ::flatbuffers::TypeTable *DominantSpeakerNotificationTypeTable() {
|
|
142
|
+
static const ::flatbuffers::TypeCode type_codes[] = {
|
|
143
|
+
{ ::flatbuffers::ET_STRING, 0, -1 }
|
|
144
|
+
};
|
|
145
|
+
static const char * const names[] = {
|
|
146
|
+
"producerId"
|
|
147
|
+
};
|
|
148
|
+
static const ::flatbuffers::TypeTable tt = {
|
|
149
|
+
::flatbuffers::ST_TABLE, 1, type_codes, nullptr, nullptr, nullptr, names
|
|
150
|
+
};
|
|
151
|
+
return &tt;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
} // namespace ActiveSpeakerObserver
|
|
155
|
+
} // namespace FBS
|
|
156
|
+
|
|
157
|
+
#endif // FLATBUFFERS_GENERATED_ACTIVESPEAKEROBSERVER_FBS_ACTIVESPEAKEROBSERVER_H_
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
#ifndef FLATBUFFERS_GENERATED_AUDIOLEVELOBSERVER_FBS_AUDIOLEVELOBSERVER_H_
|
|
5
|
+
#define FLATBUFFERS_GENERATED_AUDIOLEVELOBSERVER_FBS_AUDIOLEVELOBSERVER_H_
|
|
6
|
+
|
|
7
|
+
#include "flatbuffers/flatbuffers.h"
|
|
8
|
+
|
|
9
|
+
// Ensure the included flatbuffers.h is the same version as when this file was
|
|
10
|
+
// generated, otherwise it may not be compatible.
|
|
11
|
+
static_assert(FLATBUFFERS_VERSION_MAJOR == 23 &&
|
|
12
|
+
FLATBUFFERS_VERSION_MINOR == 3 &&
|
|
13
|
+
FLATBUFFERS_VERSION_REVISION == 3,
|
|
14
|
+
"Non-compatible flatbuffers version included");
|
|
15
|
+
|
|
16
|
+
namespace FBS {
|
|
17
|
+
namespace AudioLevelObserver {
|
|
18
|
+
|
|
19
|
+
struct AudioLevelObserverOptions;
|
|
20
|
+
struct AudioLevelObserverOptionsBuilder;
|
|
21
|
+
|
|
22
|
+
struct Volume;
|
|
23
|
+
struct VolumeBuilder;
|
|
24
|
+
|
|
25
|
+
struct VolumesNotification;
|
|
26
|
+
struct VolumesNotificationBuilder;
|
|
27
|
+
|
|
28
|
+
inline const ::flatbuffers::TypeTable *AudioLevelObserverOptionsTypeTable();
|
|
29
|
+
|
|
30
|
+
inline const ::flatbuffers::TypeTable *VolumeTypeTable();
|
|
31
|
+
|
|
32
|
+
inline const ::flatbuffers::TypeTable *VolumesNotificationTypeTable();
|
|
33
|
+
|
|
34
|
+
struct AudioLevelObserverOptions FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
35
|
+
typedef AudioLevelObserverOptionsBuilder Builder;
|
|
36
|
+
static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
|
|
37
|
+
return AudioLevelObserverOptionsTypeTable();
|
|
38
|
+
}
|
|
39
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
40
|
+
VT_MAXENTRIES = 4,
|
|
41
|
+
VT_THRESHOLD = 6,
|
|
42
|
+
VT_INTERVAL = 8
|
|
43
|
+
};
|
|
44
|
+
uint16_t maxEntries() const {
|
|
45
|
+
return GetField<uint16_t>(VT_MAXENTRIES, 0);
|
|
46
|
+
}
|
|
47
|
+
int8_t threshold() const {
|
|
48
|
+
return GetField<int8_t>(VT_THRESHOLD, 0);
|
|
49
|
+
}
|
|
50
|
+
uint16_t interval() const {
|
|
51
|
+
return GetField<uint16_t>(VT_INTERVAL, 0);
|
|
52
|
+
}
|
|
53
|
+
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
54
|
+
return VerifyTableStart(verifier) &&
|
|
55
|
+
VerifyField<uint16_t>(verifier, VT_MAXENTRIES, 2) &&
|
|
56
|
+
VerifyField<int8_t>(verifier, VT_THRESHOLD, 1) &&
|
|
57
|
+
VerifyField<uint16_t>(verifier, VT_INTERVAL, 2) &&
|
|
58
|
+
verifier.EndTable();
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
struct AudioLevelObserverOptionsBuilder {
|
|
63
|
+
typedef AudioLevelObserverOptions Table;
|
|
64
|
+
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
65
|
+
::flatbuffers::uoffset_t start_;
|
|
66
|
+
void add_maxEntries(uint16_t maxEntries) {
|
|
67
|
+
fbb_.AddElement<uint16_t>(AudioLevelObserverOptions::VT_MAXENTRIES, maxEntries, 0);
|
|
68
|
+
}
|
|
69
|
+
void add_threshold(int8_t threshold) {
|
|
70
|
+
fbb_.AddElement<int8_t>(AudioLevelObserverOptions::VT_THRESHOLD, threshold, 0);
|
|
71
|
+
}
|
|
72
|
+
void add_interval(uint16_t interval) {
|
|
73
|
+
fbb_.AddElement<uint16_t>(AudioLevelObserverOptions::VT_INTERVAL, interval, 0);
|
|
74
|
+
}
|
|
75
|
+
explicit AudioLevelObserverOptionsBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
|
|
76
|
+
: fbb_(_fbb) {
|
|
77
|
+
start_ = fbb_.StartTable();
|
|
78
|
+
}
|
|
79
|
+
::flatbuffers::Offset<AudioLevelObserverOptions> Finish() {
|
|
80
|
+
const auto end = fbb_.EndTable(start_);
|
|
81
|
+
auto o = ::flatbuffers::Offset<AudioLevelObserverOptions>(end);
|
|
82
|
+
return o;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
inline ::flatbuffers::Offset<AudioLevelObserverOptions> CreateAudioLevelObserverOptions(
|
|
87
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
88
|
+
uint16_t maxEntries = 0,
|
|
89
|
+
int8_t threshold = 0,
|
|
90
|
+
uint16_t interval = 0) {
|
|
91
|
+
AudioLevelObserverOptionsBuilder builder_(_fbb);
|
|
92
|
+
builder_.add_interval(interval);
|
|
93
|
+
builder_.add_maxEntries(maxEntries);
|
|
94
|
+
builder_.add_threshold(threshold);
|
|
95
|
+
return builder_.Finish();
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
struct Volume FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
99
|
+
typedef VolumeBuilder Builder;
|
|
100
|
+
static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
|
|
101
|
+
return VolumeTypeTable();
|
|
102
|
+
}
|
|
103
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
104
|
+
VT_PRODUCERID = 4,
|
|
105
|
+
VT_VOLUME = 6
|
|
106
|
+
};
|
|
107
|
+
const ::flatbuffers::String *producerId() const {
|
|
108
|
+
return GetPointer<const ::flatbuffers::String *>(VT_PRODUCERID);
|
|
109
|
+
}
|
|
110
|
+
int8_t volume() const {
|
|
111
|
+
return GetField<int8_t>(VT_VOLUME, 0);
|
|
112
|
+
}
|
|
113
|
+
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
114
|
+
return VerifyTableStart(verifier) &&
|
|
115
|
+
VerifyOffsetRequired(verifier, VT_PRODUCERID) &&
|
|
116
|
+
verifier.VerifyString(producerId()) &&
|
|
117
|
+
VerifyField<int8_t>(verifier, VT_VOLUME, 1) &&
|
|
118
|
+
verifier.EndTable();
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
struct VolumeBuilder {
|
|
123
|
+
typedef Volume Table;
|
|
124
|
+
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
125
|
+
::flatbuffers::uoffset_t start_;
|
|
126
|
+
void add_producerId(::flatbuffers::Offset<::flatbuffers::String> producerId) {
|
|
127
|
+
fbb_.AddOffset(Volume::VT_PRODUCERID, producerId);
|
|
128
|
+
}
|
|
129
|
+
void add_volume(int8_t volume) {
|
|
130
|
+
fbb_.AddElement<int8_t>(Volume::VT_VOLUME, volume, 0);
|
|
131
|
+
}
|
|
132
|
+
explicit VolumeBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
|
|
133
|
+
: fbb_(_fbb) {
|
|
134
|
+
start_ = fbb_.StartTable();
|
|
135
|
+
}
|
|
136
|
+
::flatbuffers::Offset<Volume> Finish() {
|
|
137
|
+
const auto end = fbb_.EndTable(start_);
|
|
138
|
+
auto o = ::flatbuffers::Offset<Volume>(end);
|
|
139
|
+
fbb_.Required(o, Volume::VT_PRODUCERID);
|
|
140
|
+
return o;
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
inline ::flatbuffers::Offset<Volume> CreateVolume(
|
|
145
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
146
|
+
::flatbuffers::Offset<::flatbuffers::String> producerId = 0,
|
|
147
|
+
int8_t volume = 0) {
|
|
148
|
+
VolumeBuilder builder_(_fbb);
|
|
149
|
+
builder_.add_producerId(producerId);
|
|
150
|
+
builder_.add_volume(volume);
|
|
151
|
+
return builder_.Finish();
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
inline ::flatbuffers::Offset<Volume> CreateVolumeDirect(
|
|
155
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
156
|
+
const char *producerId = nullptr,
|
|
157
|
+
int8_t volume = 0) {
|
|
158
|
+
auto producerId__ = producerId ? _fbb.CreateString(producerId) : 0;
|
|
159
|
+
return FBS::AudioLevelObserver::CreateVolume(
|
|
160
|
+
_fbb,
|
|
161
|
+
producerId__,
|
|
162
|
+
volume);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
struct VolumesNotification FLATBUFFERS_FINAL_CLASS : private ::flatbuffers::Table {
|
|
166
|
+
typedef VolumesNotificationBuilder Builder;
|
|
167
|
+
static const ::flatbuffers::TypeTable *MiniReflectTypeTable() {
|
|
168
|
+
return VolumesNotificationTypeTable();
|
|
169
|
+
}
|
|
170
|
+
enum FlatBuffersVTableOffset FLATBUFFERS_VTABLE_UNDERLYING_TYPE {
|
|
171
|
+
VT_VOLUMES = 4
|
|
172
|
+
};
|
|
173
|
+
const ::flatbuffers::Vector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>> *volumes() const {
|
|
174
|
+
return GetPointer<const ::flatbuffers::Vector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>> *>(VT_VOLUMES);
|
|
175
|
+
}
|
|
176
|
+
bool Verify(::flatbuffers::Verifier &verifier) const {
|
|
177
|
+
return VerifyTableStart(verifier) &&
|
|
178
|
+
VerifyOffsetRequired(verifier, VT_VOLUMES) &&
|
|
179
|
+
verifier.VerifyVector(volumes()) &&
|
|
180
|
+
verifier.VerifyVectorOfTables(volumes()) &&
|
|
181
|
+
verifier.EndTable();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
struct VolumesNotificationBuilder {
|
|
186
|
+
typedef VolumesNotification Table;
|
|
187
|
+
::flatbuffers::FlatBufferBuilder &fbb_;
|
|
188
|
+
::flatbuffers::uoffset_t start_;
|
|
189
|
+
void add_volumes(::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>>> volumes) {
|
|
190
|
+
fbb_.AddOffset(VolumesNotification::VT_VOLUMES, volumes);
|
|
191
|
+
}
|
|
192
|
+
explicit VolumesNotificationBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
|
|
193
|
+
: fbb_(_fbb) {
|
|
194
|
+
start_ = fbb_.StartTable();
|
|
195
|
+
}
|
|
196
|
+
::flatbuffers::Offset<VolumesNotification> Finish() {
|
|
197
|
+
const auto end = fbb_.EndTable(start_);
|
|
198
|
+
auto o = ::flatbuffers::Offset<VolumesNotification>(end);
|
|
199
|
+
fbb_.Required(o, VolumesNotification::VT_VOLUMES);
|
|
200
|
+
return o;
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
inline ::flatbuffers::Offset<VolumesNotification> CreateVolumesNotification(
|
|
205
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
206
|
+
::flatbuffers::Offset<::flatbuffers::Vector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>>> volumes = 0) {
|
|
207
|
+
VolumesNotificationBuilder builder_(_fbb);
|
|
208
|
+
builder_.add_volumes(volumes);
|
|
209
|
+
return builder_.Finish();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
inline ::flatbuffers::Offset<VolumesNotification> CreateVolumesNotificationDirect(
|
|
213
|
+
::flatbuffers::FlatBufferBuilder &_fbb,
|
|
214
|
+
const std::vector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>> *volumes = nullptr) {
|
|
215
|
+
auto volumes__ = volumes ? _fbb.CreateVector<::flatbuffers::Offset<FBS::AudioLevelObserver::Volume>>(*volumes) : 0;
|
|
216
|
+
return FBS::AudioLevelObserver::CreateVolumesNotification(
|
|
217
|
+
_fbb,
|
|
218
|
+
volumes__);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
inline const ::flatbuffers::TypeTable *AudioLevelObserverOptionsTypeTable() {
|
|
222
|
+
static const ::flatbuffers::TypeCode type_codes[] = {
|
|
223
|
+
{ ::flatbuffers::ET_USHORT, 0, -1 },
|
|
224
|
+
{ ::flatbuffers::ET_CHAR, 0, -1 },
|
|
225
|
+
{ ::flatbuffers::ET_USHORT, 0, -1 }
|
|
226
|
+
};
|
|
227
|
+
static const char * const names[] = {
|
|
228
|
+
"maxEntries",
|
|
229
|
+
"threshold",
|
|
230
|
+
"interval"
|
|
231
|
+
};
|
|
232
|
+
static const ::flatbuffers::TypeTable tt = {
|
|
233
|
+
::flatbuffers::ST_TABLE, 3, type_codes, nullptr, nullptr, nullptr, names
|
|
234
|
+
};
|
|
235
|
+
return &tt;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
inline const ::flatbuffers::TypeTable *VolumeTypeTable() {
|
|
239
|
+
static const ::flatbuffers::TypeCode type_codes[] = {
|
|
240
|
+
{ ::flatbuffers::ET_STRING, 0, -1 },
|
|
241
|
+
{ ::flatbuffers::ET_CHAR, 0, -1 }
|
|
242
|
+
};
|
|
243
|
+
static const char * const names[] = {
|
|
244
|
+
"producerId",
|
|
245
|
+
"volume"
|
|
246
|
+
};
|
|
247
|
+
static const ::flatbuffers::TypeTable tt = {
|
|
248
|
+
::flatbuffers::ST_TABLE, 2, type_codes, nullptr, nullptr, nullptr, names
|
|
249
|
+
};
|
|
250
|
+
return &tt;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
inline const ::flatbuffers::TypeTable *VolumesNotificationTypeTable() {
|
|
254
|
+
static const ::flatbuffers::TypeCode type_codes[] = {
|
|
255
|
+
{ ::flatbuffers::ET_SEQUENCE, 1, 0 }
|
|
256
|
+
};
|
|
257
|
+
static const ::flatbuffers::TypeFunction type_refs[] = {
|
|
258
|
+
FBS::AudioLevelObserver::VolumeTypeTable
|
|
259
|
+
};
|
|
260
|
+
static const char * const names[] = {
|
|
261
|
+
"volumes"
|
|
262
|
+
};
|
|
263
|
+
static const ::flatbuffers::TypeTable tt = {
|
|
264
|
+
::flatbuffers::ST_TABLE, 1, type_codes, type_refs, nullptr, nullptr, names
|
|
265
|
+
};
|
|
266
|
+
return &tt;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
} // namespace AudioLevelObserver
|
|
270
|
+
} // namespace FBS
|
|
271
|
+
|
|
272
|
+
#endif // FLATBUFFERS_GENERATED_AUDIOLEVELOBSERVER_FBS_AUDIOLEVELOBSERVER_H_
|