@livekit/rtc-node 0.0.7 → 0.2.0
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/build.rs +4 -0
- package/dist/audio_frame.d.ts +1 -1
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +10 -11
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_source.d.ts +3 -3
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +14 -15
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.d.ts +8 -5
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +18 -22
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.d.ts +1 -1
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +42 -45
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.d.ts +2 -2
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +17 -24
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -70
- package/dist/index.js.map +1 -1
- package/{src/native.js → dist/napi/native.cjs} +12 -0
- package/dist/napi/native.js +15 -0
- package/dist/participant.d.ts +24 -9
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +45 -45
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.d.ts +0 -46
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +138 -236
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.js +134 -162
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.d.ts +31 -44
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +140 -126
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.js +7 -11
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.js +13 -18
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.d.ts +5 -1
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +393 -454
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/stats_pb.js +265 -303
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.js +87 -102
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/video_frame_pb.d.ts +124 -390
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +252 -620
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.d.ts +10 -9
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +74 -76
- package/dist/room.js.map +1 -1
- package/dist/track.d.ts +4 -4
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +15 -20
- package/dist/track.js.map +1 -1
- package/dist/track_publication.d.ts +4 -4
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +12 -15
- package/dist/track_publication.js.map +1 -1
- package/dist/video_frame.d.ts +8 -103
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +161 -341
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.d.ts +4 -4
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +16 -22
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.d.ts +10 -5
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +20 -24
- package/dist/video_stream.js.map +1 -1
- package/package.json +14 -14
- package/src/audio_frame.ts +6 -2
- package/src/audio_source.ts +8 -4
- package/src/audio_stream.ts +15 -7
- package/src/e2ee.ts +6 -2
- package/src/ffi_client.ts +6 -2
- package/src/index.ts +19 -28
- package/src/lib.rs +4 -0
- package/src/napi/native.cjs +281 -0
- package/src/napi/native.js +15 -0
- package/src/nodejs.rs +4 -0
- package/src/participant.ts +45 -22
- package/src/proto/audio_frame_pb.ts +1 -91
- package/src/proto/e2ee_pb.ts +1 -1
- package/src/proto/ffi_pb.ts +55 -53
- package/src/proto/handle_pb.ts +1 -1
- package/src/proto/participant_pb.ts +1 -1
- package/src/proto/room_pb.ts +7 -1
- package/src/proto/stats_pb.ts +1 -1
- package/src/proto/track_pb.ts +1 -1
- package/src/proto/video_frame_pb.ts +186 -641
- package/src/room.ts +56 -48
- package/src/track.ts +8 -4
- package/src/track_publication.ts +10 -6
- package/src/video_frame.ts +186 -579
- package/src/video_source.ts +12 -12
- package/src/video_stream.ts +21 -10
- package/dist/native.d.ts.map +0 -1
- package/dist/native.js +0 -297
- package/dist/native.js.map +0 -1
- /package/dist/{native.d.ts → napi/native.d.ts} +0 -0
- /package/src/{native.d.ts → napi/native.d.ts} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
// Copyright 2023 LiveKit, Inc.
|
|
3
2
|
//
|
|
4
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -12,14 +11,12 @@
|
|
|
12
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
12
|
// See the License for the specific language governing permissions and
|
|
14
13
|
// limitations under the License.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const protobuf_1 = require("@bufbuild/protobuf");
|
|
18
|
-
const handle_pb_js_1 = require("./handle_pb.js");
|
|
14
|
+
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
15
|
+
import { FfiOwnedHandle } from "./handle_pb.js";
|
|
19
16
|
/**
|
|
20
17
|
* @generated from enum livekit.proto.AudioStreamType
|
|
21
18
|
*/
|
|
22
|
-
var AudioStreamType;
|
|
19
|
+
export var AudioStreamType;
|
|
23
20
|
(function (AudioStreamType) {
|
|
24
21
|
/**
|
|
25
22
|
* @generated from enum value: AUDIO_STREAM_NATIVE = 0;
|
|
@@ -29,116 +26,44 @@ var AudioStreamType;
|
|
|
29
26
|
* @generated from enum value: AUDIO_STREAM_HTML = 1;
|
|
30
27
|
*/
|
|
31
28
|
AudioStreamType[AudioStreamType["AUDIO_STREAM_HTML"] = 1] = "AUDIO_STREAM_HTML";
|
|
32
|
-
})(AudioStreamType || (
|
|
29
|
+
})(AudioStreamType || (AudioStreamType = {}));
|
|
33
30
|
// Retrieve enum metadata with: proto3.getEnumType(AudioStreamType)
|
|
34
|
-
|
|
31
|
+
proto3.util.setEnumType(AudioStreamType, "livekit.proto.AudioStreamType", [
|
|
35
32
|
{ no: 0, name: "AUDIO_STREAM_NATIVE" },
|
|
36
33
|
{ no: 1, name: "AUDIO_STREAM_HTML" },
|
|
37
34
|
]);
|
|
38
35
|
/**
|
|
39
36
|
* @generated from enum livekit.proto.AudioSourceType
|
|
40
37
|
*/
|
|
41
|
-
var AudioSourceType;
|
|
38
|
+
export var AudioSourceType;
|
|
42
39
|
(function (AudioSourceType) {
|
|
43
40
|
/**
|
|
44
41
|
* @generated from enum value: AUDIO_SOURCE_NATIVE = 0;
|
|
45
42
|
*/
|
|
46
43
|
AudioSourceType[AudioSourceType["AUDIO_SOURCE_NATIVE"] = 0] = "AUDIO_SOURCE_NATIVE";
|
|
47
|
-
})(AudioSourceType || (
|
|
44
|
+
})(AudioSourceType || (AudioSourceType = {}));
|
|
48
45
|
// Retrieve enum metadata with: proto3.getEnumType(AudioSourceType)
|
|
49
|
-
|
|
46
|
+
proto3.util.setEnumType(AudioSourceType, "livekit.proto.AudioSourceType", [
|
|
50
47
|
{ no: 0, name: "AUDIO_SOURCE_NATIVE" },
|
|
51
48
|
]);
|
|
52
|
-
/**
|
|
53
|
-
* Allocate a new AudioFrameBuffer
|
|
54
|
-
* This is not necessary required because the data structure is fairly simple
|
|
55
|
-
* But keep the API consistent with VideoFrame
|
|
56
|
-
*
|
|
57
|
-
* @generated from message livekit.proto.AllocAudioBufferRequest
|
|
58
|
-
*/
|
|
59
|
-
class AllocAudioBufferRequest extends protobuf_1.Message {
|
|
60
|
-
constructor(data) {
|
|
61
|
-
super();
|
|
62
|
-
/**
|
|
63
|
-
* @generated from field: uint32 sample_rate = 1;
|
|
64
|
-
*/
|
|
65
|
-
this.sampleRate = 0;
|
|
66
|
-
/**
|
|
67
|
-
* @generated from field: uint32 num_channels = 2;
|
|
68
|
-
*/
|
|
69
|
-
this.numChannels = 0;
|
|
70
|
-
/**
|
|
71
|
-
* @generated from field: uint32 samples_per_channel = 3;
|
|
72
|
-
*/
|
|
73
|
-
this.samplesPerChannel = 0;
|
|
74
|
-
protobuf_1.proto3.util.initPartial(data, this);
|
|
75
|
-
}
|
|
76
|
-
static fromBinary(bytes, options) {
|
|
77
|
-
return new AllocAudioBufferRequest().fromBinary(bytes, options);
|
|
78
|
-
}
|
|
79
|
-
static fromJson(jsonValue, options) {
|
|
80
|
-
return new AllocAudioBufferRequest().fromJson(jsonValue, options);
|
|
81
|
-
}
|
|
82
|
-
static fromJsonString(jsonString, options) {
|
|
83
|
-
return new AllocAudioBufferRequest().fromJsonString(jsonString, options);
|
|
84
|
-
}
|
|
85
|
-
static equals(a, b) {
|
|
86
|
-
return protobuf_1.proto3.util.equals(AllocAudioBufferRequest, a, b);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.AllocAudioBufferRequest = AllocAudioBufferRequest;
|
|
90
|
-
AllocAudioBufferRequest.runtime = protobuf_1.proto3;
|
|
91
|
-
AllocAudioBufferRequest.typeName = "livekit.proto.AllocAudioBufferRequest";
|
|
92
|
-
AllocAudioBufferRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
93
|
-
{ no: 1, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
94
|
-
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
95
|
-
{ no: 3, name: "samples_per_channel", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
96
|
-
]);
|
|
97
|
-
/**
|
|
98
|
-
* @generated from message livekit.proto.AllocAudioBufferResponse
|
|
99
|
-
*/
|
|
100
|
-
class AllocAudioBufferResponse extends protobuf_1.Message {
|
|
101
|
-
constructor(data) {
|
|
102
|
-
super();
|
|
103
|
-
protobuf_1.proto3.util.initPartial(data, this);
|
|
104
|
-
}
|
|
105
|
-
static fromBinary(bytes, options) {
|
|
106
|
-
return new AllocAudioBufferResponse().fromBinary(bytes, options);
|
|
107
|
-
}
|
|
108
|
-
static fromJson(jsonValue, options) {
|
|
109
|
-
return new AllocAudioBufferResponse().fromJson(jsonValue, options);
|
|
110
|
-
}
|
|
111
|
-
static fromJsonString(jsonString, options) {
|
|
112
|
-
return new AllocAudioBufferResponse().fromJsonString(jsonString, options);
|
|
113
|
-
}
|
|
114
|
-
static equals(a, b) {
|
|
115
|
-
return protobuf_1.proto3.util.equals(AllocAudioBufferResponse, a, b);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
exports.AllocAudioBufferResponse = AllocAudioBufferResponse;
|
|
119
|
-
AllocAudioBufferResponse.runtime = protobuf_1.proto3;
|
|
120
|
-
AllocAudioBufferResponse.typeName = "livekit.proto.AllocAudioBufferResponse";
|
|
121
|
-
AllocAudioBufferResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
122
|
-
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
123
|
-
]);
|
|
124
49
|
/**
|
|
125
50
|
* Create a new AudioStream
|
|
126
51
|
* AudioStream is used to receive audio frames from a track
|
|
127
52
|
*
|
|
128
53
|
* @generated from message livekit.proto.NewAudioStreamRequest
|
|
129
54
|
*/
|
|
130
|
-
class NewAudioStreamRequest extends
|
|
55
|
+
export class NewAudioStreamRequest extends Message {
|
|
131
56
|
constructor(data) {
|
|
132
57
|
super();
|
|
133
58
|
/**
|
|
134
59
|
* @generated from field: uint64 track_handle = 1;
|
|
135
60
|
*/
|
|
136
|
-
this.trackHandle =
|
|
61
|
+
this.trackHandle = protoInt64.zero;
|
|
137
62
|
/**
|
|
138
63
|
* @generated from field: livekit.proto.AudioStreamType type = 2;
|
|
139
64
|
*/
|
|
140
65
|
this.type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
141
|
-
|
|
66
|
+
proto3.util.initPartial(data, this);
|
|
142
67
|
}
|
|
143
68
|
static fromBinary(bytes, options) {
|
|
144
69
|
return new NewAudioStreamRequest().fromBinary(bytes, options);
|
|
@@ -150,23 +75,22 @@ class NewAudioStreamRequest extends protobuf_1.Message {
|
|
|
150
75
|
return new NewAudioStreamRequest().fromJsonString(jsonString, options);
|
|
151
76
|
}
|
|
152
77
|
static equals(a, b) {
|
|
153
|
-
return
|
|
78
|
+
return proto3.util.equals(NewAudioStreamRequest, a, b);
|
|
154
79
|
}
|
|
155
80
|
}
|
|
156
|
-
|
|
157
|
-
NewAudioStreamRequest.runtime = protobuf_1.proto3;
|
|
81
|
+
NewAudioStreamRequest.runtime = proto3;
|
|
158
82
|
NewAudioStreamRequest.typeName = "livekit.proto.NewAudioStreamRequest";
|
|
159
|
-
NewAudioStreamRequest.fields =
|
|
83
|
+
NewAudioStreamRequest.fields = proto3.util.newFieldList(() => [
|
|
160
84
|
{ no: 1, name: "track_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
161
|
-
{ no: 2, name: "type", kind: "enum", T:
|
|
85
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(AudioStreamType) },
|
|
162
86
|
]);
|
|
163
87
|
/**
|
|
164
88
|
* @generated from message livekit.proto.NewAudioStreamResponse
|
|
165
89
|
*/
|
|
166
|
-
class NewAudioStreamResponse extends
|
|
90
|
+
export class NewAudioStreamResponse extends Message {
|
|
167
91
|
constructor(data) {
|
|
168
92
|
super();
|
|
169
|
-
|
|
93
|
+
proto3.util.initPartial(data, this);
|
|
170
94
|
}
|
|
171
95
|
static fromBinary(bytes, options) {
|
|
172
96
|
return new NewAudioStreamResponse().fromBinary(bytes, options);
|
|
@@ -178,13 +102,12 @@ class NewAudioStreamResponse extends protobuf_1.Message {
|
|
|
178
102
|
return new NewAudioStreamResponse().fromJsonString(jsonString, options);
|
|
179
103
|
}
|
|
180
104
|
static equals(a, b) {
|
|
181
|
-
return
|
|
105
|
+
return proto3.util.equals(NewAudioStreamResponse, a, b);
|
|
182
106
|
}
|
|
183
107
|
}
|
|
184
|
-
|
|
185
|
-
NewAudioStreamResponse.runtime = protobuf_1.proto3;
|
|
108
|
+
NewAudioStreamResponse.runtime = proto3;
|
|
186
109
|
NewAudioStreamResponse.typeName = "livekit.proto.NewAudioStreamResponse";
|
|
187
|
-
NewAudioStreamResponse.fields =
|
|
110
|
+
NewAudioStreamResponse.fields = proto3.util.newFieldList(() => [
|
|
188
111
|
{ no: 1, name: "stream", kind: "message", T: OwnedAudioStream },
|
|
189
112
|
]);
|
|
190
113
|
/**
|
|
@@ -192,7 +115,7 @@ NewAudioStreamResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
192
115
|
*
|
|
193
116
|
* @generated from message livekit.proto.NewAudioSourceRequest
|
|
194
117
|
*/
|
|
195
|
-
class NewAudioSourceRequest extends
|
|
118
|
+
export class NewAudioSourceRequest extends Message {
|
|
196
119
|
constructor(data) {
|
|
197
120
|
super();
|
|
198
121
|
/**
|
|
@@ -207,7 +130,7 @@ class NewAudioSourceRequest extends protobuf_1.Message {
|
|
|
207
130
|
* @generated from field: uint32 num_channels = 4;
|
|
208
131
|
*/
|
|
209
132
|
this.numChannels = 0;
|
|
210
|
-
|
|
133
|
+
proto3.util.initPartial(data, this);
|
|
211
134
|
}
|
|
212
135
|
static fromBinary(bytes, options) {
|
|
213
136
|
return new NewAudioSourceRequest().fromBinary(bytes, options);
|
|
@@ -219,14 +142,13 @@ class NewAudioSourceRequest extends protobuf_1.Message {
|
|
|
219
142
|
return new NewAudioSourceRequest().fromJsonString(jsonString, options);
|
|
220
143
|
}
|
|
221
144
|
static equals(a, b) {
|
|
222
|
-
return
|
|
145
|
+
return proto3.util.equals(NewAudioSourceRequest, a, b);
|
|
223
146
|
}
|
|
224
147
|
}
|
|
225
|
-
|
|
226
|
-
NewAudioSourceRequest.runtime = protobuf_1.proto3;
|
|
148
|
+
NewAudioSourceRequest.runtime = proto3;
|
|
227
149
|
NewAudioSourceRequest.typeName = "livekit.proto.NewAudioSourceRequest";
|
|
228
|
-
NewAudioSourceRequest.fields =
|
|
229
|
-
{ no: 1, name: "type", kind: "enum", T:
|
|
150
|
+
NewAudioSourceRequest.fields = proto3.util.newFieldList(() => [
|
|
151
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AudioSourceType) },
|
|
230
152
|
{ no: 2, name: "options", kind: "message", T: AudioSourceOptions, opt: true },
|
|
231
153
|
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
232
154
|
{ no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
@@ -234,10 +156,10 @@ NewAudioSourceRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
234
156
|
/**
|
|
235
157
|
* @generated from message livekit.proto.NewAudioSourceResponse
|
|
236
158
|
*/
|
|
237
|
-
class NewAudioSourceResponse extends
|
|
159
|
+
export class NewAudioSourceResponse extends Message {
|
|
238
160
|
constructor(data) {
|
|
239
161
|
super();
|
|
240
|
-
|
|
162
|
+
proto3.util.initPartial(data, this);
|
|
241
163
|
}
|
|
242
164
|
static fromBinary(bytes, options) {
|
|
243
165
|
return new NewAudioSourceResponse().fromBinary(bytes, options);
|
|
@@ -249,13 +171,12 @@ class NewAudioSourceResponse extends protobuf_1.Message {
|
|
|
249
171
|
return new NewAudioSourceResponse().fromJsonString(jsonString, options);
|
|
250
172
|
}
|
|
251
173
|
static equals(a, b) {
|
|
252
|
-
return
|
|
174
|
+
return proto3.util.equals(NewAudioSourceResponse, a, b);
|
|
253
175
|
}
|
|
254
176
|
}
|
|
255
|
-
|
|
256
|
-
NewAudioSourceResponse.runtime = protobuf_1.proto3;
|
|
177
|
+
NewAudioSourceResponse.runtime = proto3;
|
|
257
178
|
NewAudioSourceResponse.typeName = "livekit.proto.NewAudioSourceResponse";
|
|
258
|
-
NewAudioSourceResponse.fields =
|
|
179
|
+
NewAudioSourceResponse.fields = proto3.util.newFieldList(() => [
|
|
259
180
|
{ no: 1, name: "source", kind: "message", T: OwnedAudioSource },
|
|
260
181
|
]);
|
|
261
182
|
/**
|
|
@@ -264,14 +185,14 @@ NewAudioSourceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
264
185
|
*
|
|
265
186
|
* @generated from message livekit.proto.CaptureAudioFrameRequest
|
|
266
187
|
*/
|
|
267
|
-
class CaptureAudioFrameRequest extends
|
|
188
|
+
export class CaptureAudioFrameRequest extends Message {
|
|
268
189
|
constructor(data) {
|
|
269
190
|
super();
|
|
270
191
|
/**
|
|
271
192
|
* @generated from field: uint64 source_handle = 1;
|
|
272
193
|
*/
|
|
273
|
-
this.sourceHandle =
|
|
274
|
-
|
|
194
|
+
this.sourceHandle = protoInt64.zero;
|
|
195
|
+
proto3.util.initPartial(data, this);
|
|
275
196
|
}
|
|
276
197
|
static fromBinary(bytes, options) {
|
|
277
198
|
return new CaptureAudioFrameRequest().fromBinary(bytes, options);
|
|
@@ -283,27 +204,26 @@ class CaptureAudioFrameRequest extends protobuf_1.Message {
|
|
|
283
204
|
return new CaptureAudioFrameRequest().fromJsonString(jsonString, options);
|
|
284
205
|
}
|
|
285
206
|
static equals(a, b) {
|
|
286
|
-
return
|
|
207
|
+
return proto3.util.equals(CaptureAudioFrameRequest, a, b);
|
|
287
208
|
}
|
|
288
209
|
}
|
|
289
|
-
|
|
290
|
-
CaptureAudioFrameRequest.runtime = protobuf_1.proto3;
|
|
210
|
+
CaptureAudioFrameRequest.runtime = proto3;
|
|
291
211
|
CaptureAudioFrameRequest.typeName = "livekit.proto.CaptureAudioFrameRequest";
|
|
292
|
-
CaptureAudioFrameRequest.fields =
|
|
212
|
+
CaptureAudioFrameRequest.fields = proto3.util.newFieldList(() => [
|
|
293
213
|
{ no: 1, name: "source_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
294
214
|
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
295
215
|
]);
|
|
296
216
|
/**
|
|
297
217
|
* @generated from message livekit.proto.CaptureAudioFrameResponse
|
|
298
218
|
*/
|
|
299
|
-
class CaptureAudioFrameResponse extends
|
|
219
|
+
export class CaptureAudioFrameResponse extends Message {
|
|
300
220
|
constructor(data) {
|
|
301
221
|
super();
|
|
302
222
|
/**
|
|
303
223
|
* @generated from field: uint64 async_id = 1;
|
|
304
224
|
*/
|
|
305
|
-
this.asyncId =
|
|
306
|
-
|
|
225
|
+
this.asyncId = protoInt64.zero;
|
|
226
|
+
proto3.util.initPartial(data, this);
|
|
307
227
|
}
|
|
308
228
|
static fromBinary(bytes, options) {
|
|
309
229
|
return new CaptureAudioFrameResponse().fromBinary(bytes, options);
|
|
@@ -315,26 +235,25 @@ class CaptureAudioFrameResponse extends protobuf_1.Message {
|
|
|
315
235
|
return new CaptureAudioFrameResponse().fromJsonString(jsonString, options);
|
|
316
236
|
}
|
|
317
237
|
static equals(a, b) {
|
|
318
|
-
return
|
|
238
|
+
return proto3.util.equals(CaptureAudioFrameResponse, a, b);
|
|
319
239
|
}
|
|
320
240
|
}
|
|
321
|
-
|
|
322
|
-
CaptureAudioFrameResponse.runtime = protobuf_1.proto3;
|
|
241
|
+
CaptureAudioFrameResponse.runtime = proto3;
|
|
323
242
|
CaptureAudioFrameResponse.typeName = "livekit.proto.CaptureAudioFrameResponse";
|
|
324
|
-
CaptureAudioFrameResponse.fields =
|
|
243
|
+
CaptureAudioFrameResponse.fields = proto3.util.newFieldList(() => [
|
|
325
244
|
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
326
245
|
]);
|
|
327
246
|
/**
|
|
328
247
|
* @generated from message livekit.proto.CaptureAudioFrameCallback
|
|
329
248
|
*/
|
|
330
|
-
class CaptureAudioFrameCallback extends
|
|
249
|
+
export class CaptureAudioFrameCallback extends Message {
|
|
331
250
|
constructor(data) {
|
|
332
251
|
super();
|
|
333
252
|
/**
|
|
334
253
|
* @generated from field: uint64 async_id = 1;
|
|
335
254
|
*/
|
|
336
|
-
this.asyncId =
|
|
337
|
-
|
|
255
|
+
this.asyncId = protoInt64.zero;
|
|
256
|
+
proto3.util.initPartial(data, this);
|
|
338
257
|
}
|
|
339
258
|
static fromBinary(bytes, options) {
|
|
340
259
|
return new CaptureAudioFrameCallback().fromBinary(bytes, options);
|
|
@@ -346,13 +265,12 @@ class CaptureAudioFrameCallback extends protobuf_1.Message {
|
|
|
346
265
|
return new CaptureAudioFrameCallback().fromJsonString(jsonString, options);
|
|
347
266
|
}
|
|
348
267
|
static equals(a, b) {
|
|
349
|
-
return
|
|
268
|
+
return proto3.util.equals(CaptureAudioFrameCallback, a, b);
|
|
350
269
|
}
|
|
351
270
|
}
|
|
352
|
-
|
|
353
|
-
CaptureAudioFrameCallback.runtime = protobuf_1.proto3;
|
|
271
|
+
CaptureAudioFrameCallback.runtime = proto3;
|
|
354
272
|
CaptureAudioFrameCallback.typeName = "livekit.proto.CaptureAudioFrameCallback";
|
|
355
|
-
CaptureAudioFrameCallback.fields =
|
|
273
|
+
CaptureAudioFrameCallback.fields = proto3.util.newFieldList(() => [
|
|
356
274
|
{ no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
357
275
|
{ no: 2, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
358
276
|
]);
|
|
@@ -361,10 +279,10 @@ CaptureAudioFrameCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
361
279
|
*
|
|
362
280
|
* @generated from message livekit.proto.NewAudioResamplerRequest
|
|
363
281
|
*/
|
|
364
|
-
class NewAudioResamplerRequest extends
|
|
282
|
+
export class NewAudioResamplerRequest extends Message {
|
|
365
283
|
constructor(data) {
|
|
366
284
|
super();
|
|
367
|
-
|
|
285
|
+
proto3.util.initPartial(data, this);
|
|
368
286
|
}
|
|
369
287
|
static fromBinary(bytes, options) {
|
|
370
288
|
return new NewAudioResamplerRequest().fromBinary(bytes, options);
|
|
@@ -376,20 +294,19 @@ class NewAudioResamplerRequest extends protobuf_1.Message {
|
|
|
376
294
|
return new NewAudioResamplerRequest().fromJsonString(jsonString, options);
|
|
377
295
|
}
|
|
378
296
|
static equals(a, b) {
|
|
379
|
-
return
|
|
297
|
+
return proto3.util.equals(NewAudioResamplerRequest, a, b);
|
|
380
298
|
}
|
|
381
299
|
}
|
|
382
|
-
|
|
383
|
-
NewAudioResamplerRequest.runtime = protobuf_1.proto3;
|
|
300
|
+
NewAudioResamplerRequest.runtime = proto3;
|
|
384
301
|
NewAudioResamplerRequest.typeName = "livekit.proto.NewAudioResamplerRequest";
|
|
385
|
-
NewAudioResamplerRequest.fields =
|
|
302
|
+
NewAudioResamplerRequest.fields = proto3.util.newFieldList(() => []);
|
|
386
303
|
/**
|
|
387
304
|
* @generated from message livekit.proto.NewAudioResamplerResponse
|
|
388
305
|
*/
|
|
389
|
-
class NewAudioResamplerResponse extends
|
|
306
|
+
export class NewAudioResamplerResponse extends Message {
|
|
390
307
|
constructor(data) {
|
|
391
308
|
super();
|
|
392
|
-
|
|
309
|
+
proto3.util.initPartial(data, this);
|
|
393
310
|
}
|
|
394
311
|
static fromBinary(bytes, options) {
|
|
395
312
|
return new NewAudioResamplerResponse().fromBinary(bytes, options);
|
|
@@ -401,13 +318,12 @@ class NewAudioResamplerResponse extends protobuf_1.Message {
|
|
|
401
318
|
return new NewAudioResamplerResponse().fromJsonString(jsonString, options);
|
|
402
319
|
}
|
|
403
320
|
static equals(a, b) {
|
|
404
|
-
return
|
|
321
|
+
return proto3.util.equals(NewAudioResamplerResponse, a, b);
|
|
405
322
|
}
|
|
406
323
|
}
|
|
407
|
-
|
|
408
|
-
NewAudioResamplerResponse.runtime = protobuf_1.proto3;
|
|
324
|
+
NewAudioResamplerResponse.runtime = proto3;
|
|
409
325
|
NewAudioResamplerResponse.typeName = "livekit.proto.NewAudioResamplerResponse";
|
|
410
|
-
NewAudioResamplerResponse.fields =
|
|
326
|
+
NewAudioResamplerResponse.fields = proto3.util.newFieldList(() => [
|
|
411
327
|
{ no: 1, name: "resampler", kind: "message", T: OwnedAudioResampler },
|
|
412
328
|
]);
|
|
413
329
|
/**
|
|
@@ -415,13 +331,13 @@ NewAudioResamplerResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
415
331
|
*
|
|
416
332
|
* @generated from message livekit.proto.RemixAndResampleRequest
|
|
417
333
|
*/
|
|
418
|
-
class RemixAndResampleRequest extends
|
|
334
|
+
export class RemixAndResampleRequest extends Message {
|
|
419
335
|
constructor(data) {
|
|
420
336
|
super();
|
|
421
337
|
/**
|
|
422
338
|
* @generated from field: uint64 resampler_handle = 1;
|
|
423
339
|
*/
|
|
424
|
-
this.resamplerHandle =
|
|
340
|
+
this.resamplerHandle = protoInt64.zero;
|
|
425
341
|
/**
|
|
426
342
|
* @generated from field: uint32 num_channels = 3;
|
|
427
343
|
*/
|
|
@@ -430,7 +346,7 @@ class RemixAndResampleRequest extends protobuf_1.Message {
|
|
|
430
346
|
* @generated from field: uint32 sample_rate = 4;
|
|
431
347
|
*/
|
|
432
348
|
this.sampleRate = 0;
|
|
433
|
-
|
|
349
|
+
proto3.util.initPartial(data, this);
|
|
434
350
|
}
|
|
435
351
|
static fromBinary(bytes, options) {
|
|
436
352
|
return new RemixAndResampleRequest().fromBinary(bytes, options);
|
|
@@ -442,13 +358,12 @@ class RemixAndResampleRequest extends protobuf_1.Message {
|
|
|
442
358
|
return new RemixAndResampleRequest().fromJsonString(jsonString, options);
|
|
443
359
|
}
|
|
444
360
|
static equals(a, b) {
|
|
445
|
-
return
|
|
361
|
+
return proto3.util.equals(RemixAndResampleRequest, a, b);
|
|
446
362
|
}
|
|
447
363
|
}
|
|
448
|
-
|
|
449
|
-
RemixAndResampleRequest.runtime = protobuf_1.proto3;
|
|
364
|
+
RemixAndResampleRequest.runtime = proto3;
|
|
450
365
|
RemixAndResampleRequest.typeName = "livekit.proto.RemixAndResampleRequest";
|
|
451
|
-
RemixAndResampleRequest.fields =
|
|
366
|
+
RemixAndResampleRequest.fields = proto3.util.newFieldList(() => [
|
|
452
367
|
{ no: 1, name: "resampler_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
453
368
|
{ no: 2, name: "buffer", kind: "message", T: AudioFrameBufferInfo },
|
|
454
369
|
{ no: 3, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
@@ -457,10 +372,10 @@ RemixAndResampleRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
457
372
|
/**
|
|
458
373
|
* @generated from message livekit.proto.RemixAndResampleResponse
|
|
459
374
|
*/
|
|
460
|
-
class RemixAndResampleResponse extends
|
|
375
|
+
export class RemixAndResampleResponse extends Message {
|
|
461
376
|
constructor(data) {
|
|
462
377
|
super();
|
|
463
|
-
|
|
378
|
+
proto3.util.initPartial(data, this);
|
|
464
379
|
}
|
|
465
380
|
static fromBinary(bytes, options) {
|
|
466
381
|
return new RemixAndResampleResponse().fromBinary(bytes, options);
|
|
@@ -472,19 +387,18 @@ class RemixAndResampleResponse extends protobuf_1.Message {
|
|
|
472
387
|
return new RemixAndResampleResponse().fromJsonString(jsonString, options);
|
|
473
388
|
}
|
|
474
389
|
static equals(a, b) {
|
|
475
|
-
return
|
|
390
|
+
return proto3.util.equals(RemixAndResampleResponse, a, b);
|
|
476
391
|
}
|
|
477
392
|
}
|
|
478
|
-
|
|
479
|
-
RemixAndResampleResponse.runtime = protobuf_1.proto3;
|
|
393
|
+
RemixAndResampleResponse.runtime = proto3;
|
|
480
394
|
RemixAndResampleResponse.typeName = "livekit.proto.RemixAndResampleResponse";
|
|
481
|
-
RemixAndResampleResponse.fields =
|
|
395
|
+
RemixAndResampleResponse.fields = proto3.util.newFieldList(() => [
|
|
482
396
|
{ no: 1, name: "buffer", kind: "message", T: OwnedAudioFrameBuffer },
|
|
483
397
|
]);
|
|
484
398
|
/**
|
|
485
399
|
* @generated from message livekit.proto.AudioFrameBufferInfo
|
|
486
400
|
*/
|
|
487
|
-
class AudioFrameBufferInfo extends
|
|
401
|
+
export class AudioFrameBufferInfo extends Message {
|
|
488
402
|
constructor(data) {
|
|
489
403
|
super();
|
|
490
404
|
/**
|
|
@@ -492,7 +406,7 @@ class AudioFrameBufferInfo extends protobuf_1.Message {
|
|
|
492
406
|
*
|
|
493
407
|
* @generated from field: uint64 data_ptr = 1;
|
|
494
408
|
*/
|
|
495
|
-
this.dataPtr =
|
|
409
|
+
this.dataPtr = protoInt64.zero;
|
|
496
410
|
/**
|
|
497
411
|
* @generated from field: uint32 num_channels = 2;
|
|
498
412
|
*/
|
|
@@ -505,7 +419,7 @@ class AudioFrameBufferInfo extends protobuf_1.Message {
|
|
|
505
419
|
* @generated from field: uint32 samples_per_channel = 4;
|
|
506
420
|
*/
|
|
507
421
|
this.samplesPerChannel = 0;
|
|
508
|
-
|
|
422
|
+
proto3.util.initPartial(data, this);
|
|
509
423
|
}
|
|
510
424
|
static fromBinary(bytes, options) {
|
|
511
425
|
return new AudioFrameBufferInfo().fromBinary(bytes, options);
|
|
@@ -517,13 +431,12 @@ class AudioFrameBufferInfo extends protobuf_1.Message {
|
|
|
517
431
|
return new AudioFrameBufferInfo().fromJsonString(jsonString, options);
|
|
518
432
|
}
|
|
519
433
|
static equals(a, b) {
|
|
520
|
-
return
|
|
434
|
+
return proto3.util.equals(AudioFrameBufferInfo, a, b);
|
|
521
435
|
}
|
|
522
436
|
}
|
|
523
|
-
|
|
524
|
-
AudioFrameBufferInfo.runtime = protobuf_1.proto3;
|
|
437
|
+
AudioFrameBufferInfo.runtime = proto3;
|
|
525
438
|
AudioFrameBufferInfo.typeName = "livekit.proto.AudioFrameBufferInfo";
|
|
526
|
-
AudioFrameBufferInfo.fields =
|
|
439
|
+
AudioFrameBufferInfo.fields = proto3.util.newFieldList(() => [
|
|
527
440
|
{ no: 1, name: "data_ptr", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
528
441
|
{ no: 2, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
529
442
|
{ no: 3, name: "sample_rate", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
@@ -532,10 +445,10 @@ AudioFrameBufferInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
532
445
|
/**
|
|
533
446
|
* @generated from message livekit.proto.OwnedAudioFrameBuffer
|
|
534
447
|
*/
|
|
535
|
-
class OwnedAudioFrameBuffer extends
|
|
448
|
+
export class OwnedAudioFrameBuffer extends Message {
|
|
536
449
|
constructor(data) {
|
|
537
450
|
super();
|
|
538
|
-
|
|
451
|
+
proto3.util.initPartial(data, this);
|
|
539
452
|
}
|
|
540
453
|
static fromBinary(bytes, options) {
|
|
541
454
|
return new OwnedAudioFrameBuffer().fromBinary(bytes, options);
|
|
@@ -547,27 +460,26 @@ class OwnedAudioFrameBuffer extends protobuf_1.Message {
|
|
|
547
460
|
return new OwnedAudioFrameBuffer().fromJsonString(jsonString, options);
|
|
548
461
|
}
|
|
549
462
|
static equals(a, b) {
|
|
550
|
-
return
|
|
463
|
+
return proto3.util.equals(OwnedAudioFrameBuffer, a, b);
|
|
551
464
|
}
|
|
552
465
|
}
|
|
553
|
-
|
|
554
|
-
OwnedAudioFrameBuffer.runtime = protobuf_1.proto3;
|
|
466
|
+
OwnedAudioFrameBuffer.runtime = proto3;
|
|
555
467
|
OwnedAudioFrameBuffer.typeName = "livekit.proto.OwnedAudioFrameBuffer";
|
|
556
|
-
OwnedAudioFrameBuffer.fields =
|
|
557
|
-
{ no: 1, name: "handle", kind: "message", T:
|
|
468
|
+
OwnedAudioFrameBuffer.fields = proto3.util.newFieldList(() => [
|
|
469
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
558
470
|
{ no: 2, name: "info", kind: "message", T: AudioFrameBufferInfo },
|
|
559
471
|
]);
|
|
560
472
|
/**
|
|
561
473
|
* @generated from message livekit.proto.AudioStreamInfo
|
|
562
474
|
*/
|
|
563
|
-
class AudioStreamInfo extends
|
|
475
|
+
export class AudioStreamInfo extends Message {
|
|
564
476
|
constructor(data) {
|
|
565
477
|
super();
|
|
566
478
|
/**
|
|
567
479
|
* @generated from field: livekit.proto.AudioStreamType type = 1;
|
|
568
480
|
*/
|
|
569
481
|
this.type = AudioStreamType.AUDIO_STREAM_NATIVE;
|
|
570
|
-
|
|
482
|
+
proto3.util.initPartial(data, this);
|
|
571
483
|
}
|
|
572
484
|
static fromBinary(bytes, options) {
|
|
573
485
|
return new AudioStreamInfo().fromBinary(bytes, options);
|
|
@@ -579,22 +491,21 @@ class AudioStreamInfo extends protobuf_1.Message {
|
|
|
579
491
|
return new AudioStreamInfo().fromJsonString(jsonString, options);
|
|
580
492
|
}
|
|
581
493
|
static equals(a, b) {
|
|
582
|
-
return
|
|
494
|
+
return proto3.util.equals(AudioStreamInfo, a, b);
|
|
583
495
|
}
|
|
584
496
|
}
|
|
585
|
-
|
|
586
|
-
AudioStreamInfo.runtime = protobuf_1.proto3;
|
|
497
|
+
AudioStreamInfo.runtime = proto3;
|
|
587
498
|
AudioStreamInfo.typeName = "livekit.proto.AudioStreamInfo";
|
|
588
|
-
AudioStreamInfo.fields =
|
|
589
|
-
{ no: 1, name: "type", kind: "enum", T:
|
|
499
|
+
AudioStreamInfo.fields = proto3.util.newFieldList(() => [
|
|
500
|
+
{ no: 1, name: "type", kind: "enum", T: proto3.getEnumType(AudioStreamType) },
|
|
590
501
|
]);
|
|
591
502
|
/**
|
|
592
503
|
* @generated from message livekit.proto.OwnedAudioStream
|
|
593
504
|
*/
|
|
594
|
-
class OwnedAudioStream extends
|
|
505
|
+
export class OwnedAudioStream extends Message {
|
|
595
506
|
constructor(data) {
|
|
596
507
|
super();
|
|
597
|
-
|
|
508
|
+
proto3.util.initPartial(data, this);
|
|
598
509
|
}
|
|
599
510
|
static fromBinary(bytes, options) {
|
|
600
511
|
return new OwnedAudioStream().fromBinary(bytes, options);
|
|
@@ -606,31 +517,30 @@ class OwnedAudioStream extends protobuf_1.Message {
|
|
|
606
517
|
return new OwnedAudioStream().fromJsonString(jsonString, options);
|
|
607
518
|
}
|
|
608
519
|
static equals(a, b) {
|
|
609
|
-
return
|
|
520
|
+
return proto3.util.equals(OwnedAudioStream, a, b);
|
|
610
521
|
}
|
|
611
522
|
}
|
|
612
|
-
|
|
613
|
-
OwnedAudioStream.runtime = protobuf_1.proto3;
|
|
523
|
+
OwnedAudioStream.runtime = proto3;
|
|
614
524
|
OwnedAudioStream.typeName = "livekit.proto.OwnedAudioStream";
|
|
615
|
-
OwnedAudioStream.fields =
|
|
616
|
-
{ no: 1, name: "handle", kind: "message", T:
|
|
525
|
+
OwnedAudioStream.fields = proto3.util.newFieldList(() => [
|
|
526
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
617
527
|
{ no: 2, name: "info", kind: "message", T: AudioStreamInfo },
|
|
618
528
|
]);
|
|
619
529
|
/**
|
|
620
530
|
* @generated from message livekit.proto.AudioStreamEvent
|
|
621
531
|
*/
|
|
622
|
-
class AudioStreamEvent extends
|
|
532
|
+
export class AudioStreamEvent extends Message {
|
|
623
533
|
constructor(data) {
|
|
624
534
|
super();
|
|
625
535
|
/**
|
|
626
536
|
* @generated from field: uint64 stream_handle = 1;
|
|
627
537
|
*/
|
|
628
|
-
this.streamHandle =
|
|
538
|
+
this.streamHandle = protoInt64.zero;
|
|
629
539
|
/**
|
|
630
540
|
* @generated from oneof livekit.proto.AudioStreamEvent.message
|
|
631
541
|
*/
|
|
632
542
|
this.message = { case: undefined };
|
|
633
|
-
|
|
543
|
+
proto3.util.initPartial(data, this);
|
|
634
544
|
}
|
|
635
545
|
static fromBinary(bytes, options) {
|
|
636
546
|
return new AudioStreamEvent().fromBinary(bytes, options);
|
|
@@ -642,13 +552,12 @@ class AudioStreamEvent extends protobuf_1.Message {
|
|
|
642
552
|
return new AudioStreamEvent().fromJsonString(jsonString, options);
|
|
643
553
|
}
|
|
644
554
|
static equals(a, b) {
|
|
645
|
-
return
|
|
555
|
+
return proto3.util.equals(AudioStreamEvent, a, b);
|
|
646
556
|
}
|
|
647
557
|
}
|
|
648
|
-
|
|
649
|
-
AudioStreamEvent.runtime = protobuf_1.proto3;
|
|
558
|
+
AudioStreamEvent.runtime = proto3;
|
|
650
559
|
AudioStreamEvent.typeName = "livekit.proto.AudioStreamEvent";
|
|
651
|
-
AudioStreamEvent.fields =
|
|
560
|
+
AudioStreamEvent.fields = proto3.util.newFieldList(() => [
|
|
652
561
|
{ no: 1, name: "stream_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
653
562
|
{ no: 2, name: "frame_received", kind: "message", T: AudioFrameReceived, oneof: "message" },
|
|
654
563
|
{ no: 3, name: "eos", kind: "message", T: AudioStreamEOS, oneof: "message" },
|
|
@@ -656,10 +565,10 @@ AudioStreamEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
656
565
|
/**
|
|
657
566
|
* @generated from message livekit.proto.AudioFrameReceived
|
|
658
567
|
*/
|
|
659
|
-
class AudioFrameReceived extends
|
|
568
|
+
export class AudioFrameReceived extends Message {
|
|
660
569
|
constructor(data) {
|
|
661
570
|
super();
|
|
662
|
-
|
|
571
|
+
proto3.util.initPartial(data, this);
|
|
663
572
|
}
|
|
664
573
|
static fromBinary(bytes, options) {
|
|
665
574
|
return new AudioFrameReceived().fromBinary(bytes, options);
|
|
@@ -671,22 +580,21 @@ class AudioFrameReceived extends protobuf_1.Message {
|
|
|
671
580
|
return new AudioFrameReceived().fromJsonString(jsonString, options);
|
|
672
581
|
}
|
|
673
582
|
static equals(a, b) {
|
|
674
|
-
return
|
|
583
|
+
return proto3.util.equals(AudioFrameReceived, a, b);
|
|
675
584
|
}
|
|
676
585
|
}
|
|
677
|
-
|
|
678
|
-
AudioFrameReceived.runtime = protobuf_1.proto3;
|
|
586
|
+
AudioFrameReceived.runtime = proto3;
|
|
679
587
|
AudioFrameReceived.typeName = "livekit.proto.AudioFrameReceived";
|
|
680
|
-
AudioFrameReceived.fields =
|
|
588
|
+
AudioFrameReceived.fields = proto3.util.newFieldList(() => [
|
|
681
589
|
{ no: 1, name: "frame", kind: "message", T: OwnedAudioFrameBuffer },
|
|
682
590
|
]);
|
|
683
591
|
/**
|
|
684
592
|
* @generated from message livekit.proto.AudioStreamEOS
|
|
685
593
|
*/
|
|
686
|
-
class AudioStreamEOS extends
|
|
594
|
+
export class AudioStreamEOS extends Message {
|
|
687
595
|
constructor(data) {
|
|
688
596
|
super();
|
|
689
|
-
|
|
597
|
+
proto3.util.initPartial(data, this);
|
|
690
598
|
}
|
|
691
599
|
static fromBinary(bytes, options) {
|
|
692
600
|
return new AudioStreamEOS().fromBinary(bytes, options);
|
|
@@ -698,17 +606,16 @@ class AudioStreamEOS extends protobuf_1.Message {
|
|
|
698
606
|
return new AudioStreamEOS().fromJsonString(jsonString, options);
|
|
699
607
|
}
|
|
700
608
|
static equals(a, b) {
|
|
701
|
-
return
|
|
609
|
+
return proto3.util.equals(AudioStreamEOS, a, b);
|
|
702
610
|
}
|
|
703
611
|
}
|
|
704
|
-
|
|
705
|
-
AudioStreamEOS.runtime = protobuf_1.proto3;
|
|
612
|
+
AudioStreamEOS.runtime = proto3;
|
|
706
613
|
AudioStreamEOS.typeName = "livekit.proto.AudioStreamEOS";
|
|
707
|
-
AudioStreamEOS.fields =
|
|
614
|
+
AudioStreamEOS.fields = proto3.util.newFieldList(() => []);
|
|
708
615
|
/**
|
|
709
616
|
* @generated from message livekit.proto.AudioSourceOptions
|
|
710
617
|
*/
|
|
711
|
-
class AudioSourceOptions extends
|
|
618
|
+
export class AudioSourceOptions extends Message {
|
|
712
619
|
constructor(data) {
|
|
713
620
|
super();
|
|
714
621
|
/**
|
|
@@ -723,7 +630,7 @@ class AudioSourceOptions extends protobuf_1.Message {
|
|
|
723
630
|
* @generated from field: bool auto_gain_control = 3;
|
|
724
631
|
*/
|
|
725
632
|
this.autoGainControl = false;
|
|
726
|
-
|
|
633
|
+
proto3.util.initPartial(data, this);
|
|
727
634
|
}
|
|
728
635
|
static fromBinary(bytes, options) {
|
|
729
636
|
return new AudioSourceOptions().fromBinary(bytes, options);
|
|
@@ -735,13 +642,12 @@ class AudioSourceOptions extends protobuf_1.Message {
|
|
|
735
642
|
return new AudioSourceOptions().fromJsonString(jsonString, options);
|
|
736
643
|
}
|
|
737
644
|
static equals(a, b) {
|
|
738
|
-
return
|
|
645
|
+
return proto3.util.equals(AudioSourceOptions, a, b);
|
|
739
646
|
}
|
|
740
647
|
}
|
|
741
|
-
|
|
742
|
-
AudioSourceOptions.runtime = protobuf_1.proto3;
|
|
648
|
+
AudioSourceOptions.runtime = proto3;
|
|
743
649
|
AudioSourceOptions.typeName = "livekit.proto.AudioSourceOptions";
|
|
744
|
-
AudioSourceOptions.fields =
|
|
650
|
+
AudioSourceOptions.fields = proto3.util.newFieldList(() => [
|
|
745
651
|
{ no: 1, name: "echo_cancellation", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
746
652
|
{ no: 2, name: "noise_suppression", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
747
653
|
{ no: 3, name: "auto_gain_control", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
@@ -749,14 +655,14 @@ AudioSourceOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
|
749
655
|
/**
|
|
750
656
|
* @generated from message livekit.proto.AudioSourceInfo
|
|
751
657
|
*/
|
|
752
|
-
class AudioSourceInfo extends
|
|
658
|
+
export class AudioSourceInfo extends Message {
|
|
753
659
|
constructor(data) {
|
|
754
660
|
super();
|
|
755
661
|
/**
|
|
756
662
|
* @generated from field: livekit.proto.AudioSourceType type = 2;
|
|
757
663
|
*/
|
|
758
664
|
this.type = AudioSourceType.AUDIO_SOURCE_NATIVE;
|
|
759
|
-
|
|
665
|
+
proto3.util.initPartial(data, this);
|
|
760
666
|
}
|
|
761
667
|
static fromBinary(bytes, options) {
|
|
762
668
|
return new AudioSourceInfo().fromBinary(bytes, options);
|
|
@@ -768,22 +674,21 @@ class AudioSourceInfo extends protobuf_1.Message {
|
|
|
768
674
|
return new AudioSourceInfo().fromJsonString(jsonString, options);
|
|
769
675
|
}
|
|
770
676
|
static equals(a, b) {
|
|
771
|
-
return
|
|
677
|
+
return proto3.util.equals(AudioSourceInfo, a, b);
|
|
772
678
|
}
|
|
773
679
|
}
|
|
774
|
-
|
|
775
|
-
AudioSourceInfo.runtime = protobuf_1.proto3;
|
|
680
|
+
AudioSourceInfo.runtime = proto3;
|
|
776
681
|
AudioSourceInfo.typeName = "livekit.proto.AudioSourceInfo";
|
|
777
|
-
AudioSourceInfo.fields =
|
|
778
|
-
{ no: 2, name: "type", kind: "enum", T:
|
|
682
|
+
AudioSourceInfo.fields = proto3.util.newFieldList(() => [
|
|
683
|
+
{ no: 2, name: "type", kind: "enum", T: proto3.getEnumType(AudioSourceType) },
|
|
779
684
|
]);
|
|
780
685
|
/**
|
|
781
686
|
* @generated from message livekit.proto.OwnedAudioSource
|
|
782
687
|
*/
|
|
783
|
-
class OwnedAudioSource extends
|
|
688
|
+
export class OwnedAudioSource extends Message {
|
|
784
689
|
constructor(data) {
|
|
785
690
|
super();
|
|
786
|
-
|
|
691
|
+
proto3.util.initPartial(data, this);
|
|
787
692
|
}
|
|
788
693
|
static fromBinary(bytes, options) {
|
|
789
694
|
return new OwnedAudioSource().fromBinary(bytes, options);
|
|
@@ -795,23 +700,22 @@ class OwnedAudioSource extends protobuf_1.Message {
|
|
|
795
700
|
return new OwnedAudioSource().fromJsonString(jsonString, options);
|
|
796
701
|
}
|
|
797
702
|
static equals(a, b) {
|
|
798
|
-
return
|
|
703
|
+
return proto3.util.equals(OwnedAudioSource, a, b);
|
|
799
704
|
}
|
|
800
705
|
}
|
|
801
|
-
|
|
802
|
-
OwnedAudioSource.runtime = protobuf_1.proto3;
|
|
706
|
+
OwnedAudioSource.runtime = proto3;
|
|
803
707
|
OwnedAudioSource.typeName = "livekit.proto.OwnedAudioSource";
|
|
804
|
-
OwnedAudioSource.fields =
|
|
805
|
-
{ no: 1, name: "handle", kind: "message", T:
|
|
708
|
+
OwnedAudioSource.fields = proto3.util.newFieldList(() => [
|
|
709
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
806
710
|
{ no: 2, name: "info", kind: "message", T: AudioSourceInfo },
|
|
807
711
|
]);
|
|
808
712
|
/**
|
|
809
713
|
* @generated from message livekit.proto.AudioResamplerInfo
|
|
810
714
|
*/
|
|
811
|
-
class AudioResamplerInfo extends
|
|
715
|
+
export class AudioResamplerInfo extends Message {
|
|
812
716
|
constructor(data) {
|
|
813
717
|
super();
|
|
814
|
-
|
|
718
|
+
proto3.util.initPartial(data, this);
|
|
815
719
|
}
|
|
816
720
|
static fromBinary(bytes, options) {
|
|
817
721
|
return new AudioResamplerInfo().fromBinary(bytes, options);
|
|
@@ -823,20 +727,19 @@ class AudioResamplerInfo extends protobuf_1.Message {
|
|
|
823
727
|
return new AudioResamplerInfo().fromJsonString(jsonString, options);
|
|
824
728
|
}
|
|
825
729
|
static equals(a, b) {
|
|
826
|
-
return
|
|
730
|
+
return proto3.util.equals(AudioResamplerInfo, a, b);
|
|
827
731
|
}
|
|
828
732
|
}
|
|
829
|
-
|
|
830
|
-
AudioResamplerInfo.runtime = protobuf_1.proto3;
|
|
733
|
+
AudioResamplerInfo.runtime = proto3;
|
|
831
734
|
AudioResamplerInfo.typeName = "livekit.proto.AudioResamplerInfo";
|
|
832
|
-
AudioResamplerInfo.fields =
|
|
735
|
+
AudioResamplerInfo.fields = proto3.util.newFieldList(() => []);
|
|
833
736
|
/**
|
|
834
737
|
* @generated from message livekit.proto.OwnedAudioResampler
|
|
835
738
|
*/
|
|
836
|
-
class OwnedAudioResampler extends
|
|
739
|
+
export class OwnedAudioResampler extends Message {
|
|
837
740
|
constructor(data) {
|
|
838
741
|
super();
|
|
839
|
-
|
|
742
|
+
proto3.util.initPartial(data, this);
|
|
840
743
|
}
|
|
841
744
|
static fromBinary(bytes, options) {
|
|
842
745
|
return new OwnedAudioResampler().fromBinary(bytes, options);
|
|
@@ -848,14 +751,13 @@ class OwnedAudioResampler extends protobuf_1.Message {
|
|
|
848
751
|
return new OwnedAudioResampler().fromJsonString(jsonString, options);
|
|
849
752
|
}
|
|
850
753
|
static equals(a, b) {
|
|
851
|
-
return
|
|
754
|
+
return proto3.util.equals(OwnedAudioResampler, a, b);
|
|
852
755
|
}
|
|
853
756
|
}
|
|
854
|
-
|
|
855
|
-
OwnedAudioResampler.runtime = protobuf_1.proto3;
|
|
757
|
+
OwnedAudioResampler.runtime = proto3;
|
|
856
758
|
OwnedAudioResampler.typeName = "livekit.proto.OwnedAudioResampler";
|
|
857
|
-
OwnedAudioResampler.fields =
|
|
858
|
-
{ no: 1, name: "handle", kind: "message", T:
|
|
759
|
+
OwnedAudioResampler.fields = proto3.util.newFieldList(() => [
|
|
760
|
+
{ no: 1, name: "handle", kind: "message", T: FfiOwnedHandle },
|
|
859
761
|
{ no: 2, name: "info", kind: "message", T: AudioResamplerInfo },
|
|
860
762
|
]);
|
|
861
763
|
//# sourceMappingURL=audio_frame_pb.js.map
|