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