@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.
Files changed (113) 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 +8 -5
  11. package/dist/audio_stream.d.ts.map +1 -1
  12. package/dist/audio_stream.js +18 -22
  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.d.ts +0 -46
  33. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  34. package/dist/proto/audio_frame_pb.js +138 -236
  35. package/dist/proto/audio_frame_pb.js.map +1 -1
  36. package/dist/proto/e2ee_pb.js +134 -162
  37. package/dist/proto/e2ee_pb.js.map +1 -1
  38. package/dist/proto/ffi_pb.d.ts +31 -44
  39. package/dist/proto/ffi_pb.d.ts.map +1 -1
  40. package/dist/proto/ffi_pb.js +140 -126
  41. package/dist/proto/ffi_pb.js.map +1 -1
  42. package/dist/proto/handle_pb.js +7 -11
  43. package/dist/proto/handle_pb.js.map +1 -1
  44. package/dist/proto/participant_pb.js +13 -18
  45. package/dist/proto/participant_pb.js.map +1 -1
  46. package/dist/proto/room_pb.d.ts +5 -1
  47. package/dist/proto/room_pb.d.ts.map +1 -1
  48. package/dist/proto/room_pb.js +393 -454
  49. package/dist/proto/room_pb.js.map +1 -1
  50. package/dist/proto/stats_pb.js +265 -303
  51. package/dist/proto/stats_pb.js.map +1 -1
  52. package/dist/proto/track_pb.js +87 -102
  53. package/dist/proto/track_pb.js.map +1 -1
  54. package/dist/proto/video_frame_pb.d.ts +124 -390
  55. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  56. package/dist/proto/video_frame_pb.js +252 -620
  57. package/dist/proto/video_frame_pb.js.map +1 -1
  58. package/dist/room.d.ts +10 -9
  59. package/dist/room.d.ts.map +1 -1
  60. package/dist/room.js +74 -76
  61. package/dist/room.js.map +1 -1
  62. package/dist/track.d.ts +4 -4
  63. package/dist/track.d.ts.map +1 -1
  64. package/dist/track.js +15 -20
  65. package/dist/track.js.map +1 -1
  66. package/dist/track_publication.d.ts +4 -4
  67. package/dist/track_publication.d.ts.map +1 -1
  68. package/dist/track_publication.js +12 -15
  69. package/dist/track_publication.js.map +1 -1
  70. package/dist/video_frame.d.ts +8 -103
  71. package/dist/video_frame.d.ts.map +1 -1
  72. package/dist/video_frame.js +161 -341
  73. package/dist/video_frame.js.map +1 -1
  74. package/dist/video_source.d.ts +4 -4
  75. package/dist/video_source.d.ts.map +1 -1
  76. package/dist/video_source.js +16 -22
  77. package/dist/video_source.js.map +1 -1
  78. package/dist/video_stream.d.ts +10 -5
  79. package/dist/video_stream.d.ts.map +1 -1
  80. package/dist/video_stream.js +20 -24
  81. package/dist/video_stream.js.map +1 -1
  82. package/package.json +14 -14
  83. package/src/audio_frame.ts +6 -2
  84. package/src/audio_source.ts +8 -4
  85. package/src/audio_stream.ts +15 -7
  86. package/src/e2ee.ts +6 -2
  87. package/src/ffi_client.ts +6 -2
  88. package/src/index.ts +19 -28
  89. package/src/lib.rs +4 -0
  90. package/src/napi/native.cjs +281 -0
  91. package/src/napi/native.js +15 -0
  92. package/src/nodejs.rs +4 -0
  93. package/src/participant.ts +45 -22
  94. package/src/proto/audio_frame_pb.ts +1 -91
  95. package/src/proto/e2ee_pb.ts +1 -1
  96. package/src/proto/ffi_pb.ts +55 -53
  97. package/src/proto/handle_pb.ts +1 -1
  98. package/src/proto/participant_pb.ts +1 -1
  99. package/src/proto/room_pb.ts +7 -1
  100. package/src/proto/stats_pb.ts +1 -1
  101. package/src/proto/track_pb.ts +1 -1
  102. package/src/proto/video_frame_pb.ts +186 -641
  103. package/src/room.ts +56 -48
  104. package/src/track.ts +8 -4
  105. package/src/track_publication.ts +10 -6
  106. package/src/video_frame.ts +186 -579
  107. package/src/video_source.ts +12 -12
  108. package/src/video_stream.ts +21 -10
  109. package/dist/native.d.ts.map +0 -1
  110. package/dist/native.js +0 -297
  111. package/dist/native.js.map +0 -1
  112. /package/dist/{native.d.ts → napi/native.d.ts} +0 -0
  113. /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,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 || (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
- /**
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioStreamRequest, a, b);
78
+ return proto3.util.equals(NewAudioStreamRequest, a, b);
154
79
  }
155
80
  }
156
- exports.NewAudioStreamRequest = NewAudioStreamRequest;
157
- NewAudioStreamRequest.runtime = protobuf_1.proto3;
81
+ NewAudioStreamRequest.runtime = proto3;
158
82
  NewAudioStreamRequest.typeName = "livekit.proto.NewAudioStreamRequest";
159
- NewAudioStreamRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
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: protobuf_1.proto3.getEnumType(AudioStreamType) },
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 protobuf_1.Message {
90
+ export class NewAudioStreamResponse extends Message {
167
91
  constructor(data) {
168
92
  super();
169
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioStreamResponse, a, b);
105
+ return proto3.util.equals(NewAudioStreamResponse, a, b);
182
106
  }
183
107
  }
184
- exports.NewAudioStreamResponse = NewAudioStreamResponse;
185
- NewAudioStreamResponse.runtime = protobuf_1.proto3;
108
+ NewAudioStreamResponse.runtime = proto3;
186
109
  NewAudioStreamResponse.typeName = "livekit.proto.NewAudioStreamResponse";
187
- NewAudioStreamResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioSourceRequest, a, b);
145
+ return proto3.util.equals(NewAudioSourceRequest, a, b);
223
146
  }
224
147
  }
225
- exports.NewAudioSourceRequest = NewAudioSourceRequest;
226
- NewAudioSourceRequest.runtime = protobuf_1.proto3;
148
+ NewAudioSourceRequest.runtime = proto3;
227
149
  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) },
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 protobuf_1.Message {
159
+ export class NewAudioSourceResponse extends Message {
238
160
  constructor(data) {
239
161
  super();
240
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioSourceResponse, a, b);
174
+ return proto3.util.equals(NewAudioSourceResponse, a, b);
253
175
  }
254
176
  }
255
- exports.NewAudioSourceResponse = NewAudioSourceResponse;
256
- NewAudioSourceResponse.runtime = protobuf_1.proto3;
177
+ NewAudioSourceResponse.runtime = proto3;
257
178
  NewAudioSourceResponse.typeName = "livekit.proto.NewAudioSourceResponse";
258
- NewAudioSourceResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
274
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(CaptureAudioFrameRequest, a, b);
207
+ return proto3.util.equals(CaptureAudioFrameRequest, a, b);
287
208
  }
288
209
  }
289
- exports.CaptureAudioFrameRequest = CaptureAudioFrameRequest;
290
- CaptureAudioFrameRequest.runtime = protobuf_1.proto3;
210
+ CaptureAudioFrameRequest.runtime = proto3;
291
211
  CaptureAudioFrameRequest.typeName = "livekit.proto.CaptureAudioFrameRequest";
292
- CaptureAudioFrameRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
306
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(CaptureAudioFrameResponse, a, b);
238
+ return proto3.util.equals(CaptureAudioFrameResponse, a, b);
319
239
  }
320
240
  }
321
- exports.CaptureAudioFrameResponse = CaptureAudioFrameResponse;
322
- CaptureAudioFrameResponse.runtime = protobuf_1.proto3;
241
+ CaptureAudioFrameResponse.runtime = proto3;
323
242
  CaptureAudioFrameResponse.typeName = "livekit.proto.CaptureAudioFrameResponse";
324
- CaptureAudioFrameResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
337
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(CaptureAudioFrameCallback, a, b);
268
+ return proto3.util.equals(CaptureAudioFrameCallback, a, b);
350
269
  }
351
270
  }
352
- exports.CaptureAudioFrameCallback = CaptureAudioFrameCallback;
353
- CaptureAudioFrameCallback.runtime = protobuf_1.proto3;
271
+ CaptureAudioFrameCallback.runtime = proto3;
354
272
  CaptureAudioFrameCallback.typeName = "livekit.proto.CaptureAudioFrameCallback";
355
- CaptureAudioFrameCallback.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
282
+ export class NewAudioResamplerRequest extends Message {
365
283
  constructor(data) {
366
284
  super();
367
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioResamplerRequest, a, b);
297
+ return proto3.util.equals(NewAudioResamplerRequest, a, b);
380
298
  }
381
299
  }
382
- exports.NewAudioResamplerRequest = NewAudioResamplerRequest;
383
- NewAudioResamplerRequest.runtime = protobuf_1.proto3;
300
+ NewAudioResamplerRequest.runtime = proto3;
384
301
  NewAudioResamplerRequest.typeName = "livekit.proto.NewAudioResamplerRequest";
385
- NewAudioResamplerRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
302
+ NewAudioResamplerRequest.fields = proto3.util.newFieldList(() => []);
386
303
  /**
387
304
  * @generated from message livekit.proto.NewAudioResamplerResponse
388
305
  */
389
- class NewAudioResamplerResponse extends protobuf_1.Message {
306
+ export class NewAudioResamplerResponse extends Message {
390
307
  constructor(data) {
391
308
  super();
392
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(NewAudioResamplerResponse, a, b);
321
+ return proto3.util.equals(NewAudioResamplerResponse, a, b);
405
322
  }
406
323
  }
407
- exports.NewAudioResamplerResponse = NewAudioResamplerResponse;
408
- NewAudioResamplerResponse.runtime = protobuf_1.proto3;
324
+ NewAudioResamplerResponse.runtime = proto3;
409
325
  NewAudioResamplerResponse.typeName = "livekit.proto.NewAudioResamplerResponse";
410
- NewAudioResamplerResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(RemixAndResampleRequest, a, b);
361
+ return proto3.util.equals(RemixAndResampleRequest, a, b);
446
362
  }
447
363
  }
448
- exports.RemixAndResampleRequest = RemixAndResampleRequest;
449
- RemixAndResampleRequest.runtime = protobuf_1.proto3;
364
+ RemixAndResampleRequest.runtime = proto3;
450
365
  RemixAndResampleRequest.typeName = "livekit.proto.RemixAndResampleRequest";
451
- RemixAndResampleRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
375
+ export class RemixAndResampleResponse extends Message {
461
376
  constructor(data) {
462
377
  super();
463
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(RemixAndResampleResponse, a, b);
390
+ return proto3.util.equals(RemixAndResampleResponse, a, b);
476
391
  }
477
392
  }
478
- exports.RemixAndResampleResponse = RemixAndResampleResponse;
479
- RemixAndResampleResponse.runtime = protobuf_1.proto3;
393
+ RemixAndResampleResponse.runtime = proto3;
480
394
  RemixAndResampleResponse.typeName = "livekit.proto.RemixAndResampleResponse";
481
- RemixAndResampleResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioFrameBufferInfo, a, b);
434
+ return proto3.util.equals(AudioFrameBufferInfo, a, b);
521
435
  }
522
436
  }
523
- exports.AudioFrameBufferInfo = AudioFrameBufferInfo;
524
- AudioFrameBufferInfo.runtime = protobuf_1.proto3;
437
+ AudioFrameBufferInfo.runtime = proto3;
525
438
  AudioFrameBufferInfo.typeName = "livekit.proto.AudioFrameBufferInfo";
526
- AudioFrameBufferInfo.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
448
+ export class OwnedAudioFrameBuffer extends Message {
536
449
  constructor(data) {
537
450
  super();
538
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(OwnedAudioFrameBuffer, a, b);
463
+ return proto3.util.equals(OwnedAudioFrameBuffer, a, b);
551
464
  }
552
465
  }
553
- exports.OwnedAudioFrameBuffer = OwnedAudioFrameBuffer;
554
- OwnedAudioFrameBuffer.runtime = protobuf_1.proto3;
466
+ OwnedAudioFrameBuffer.runtime = proto3;
555
467
  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 },
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 protobuf_1.Message {
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioStreamInfo, a, b);
494
+ return proto3.util.equals(AudioStreamInfo, a, b);
583
495
  }
584
496
  }
585
- exports.AudioStreamInfo = AudioStreamInfo;
586
- AudioStreamInfo.runtime = protobuf_1.proto3;
497
+ AudioStreamInfo.runtime = proto3;
587
498
  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) },
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 protobuf_1.Message {
505
+ export class OwnedAudioStream extends Message {
595
506
  constructor(data) {
596
507
  super();
597
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(OwnedAudioStream, a, b);
520
+ return proto3.util.equals(OwnedAudioStream, a, b);
610
521
  }
611
522
  }
612
- exports.OwnedAudioStream = OwnedAudioStream;
613
- OwnedAudioStream.runtime = protobuf_1.proto3;
523
+ OwnedAudioStream.runtime = proto3;
614
524
  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 },
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 protobuf_1.Message {
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 = protobuf_1.protoInt64.zero;
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioStreamEvent, a, b);
555
+ return proto3.util.equals(AudioStreamEvent, a, b);
646
556
  }
647
557
  }
648
- exports.AudioStreamEvent = AudioStreamEvent;
649
- AudioStreamEvent.runtime = protobuf_1.proto3;
558
+ AudioStreamEvent.runtime = proto3;
650
559
  AudioStreamEvent.typeName = "livekit.proto.AudioStreamEvent";
651
- AudioStreamEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
568
+ export class AudioFrameReceived extends Message {
660
569
  constructor(data) {
661
570
  super();
662
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioFrameReceived, a, b);
583
+ return proto3.util.equals(AudioFrameReceived, a, b);
675
584
  }
676
585
  }
677
- exports.AudioFrameReceived = AudioFrameReceived;
678
- AudioFrameReceived.runtime = protobuf_1.proto3;
586
+ AudioFrameReceived.runtime = proto3;
679
587
  AudioFrameReceived.typeName = "livekit.proto.AudioFrameReceived";
680
- AudioFrameReceived.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
594
+ export class AudioStreamEOS extends Message {
687
595
  constructor(data) {
688
596
  super();
689
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioStreamEOS, a, b);
609
+ return proto3.util.equals(AudioStreamEOS, a, b);
702
610
  }
703
611
  }
704
- exports.AudioStreamEOS = AudioStreamEOS;
705
- AudioStreamEOS.runtime = protobuf_1.proto3;
612
+ AudioStreamEOS.runtime = proto3;
706
613
  AudioStreamEOS.typeName = "livekit.proto.AudioStreamEOS";
707
- AudioStreamEOS.fields = protobuf_1.proto3.util.newFieldList(() => []);
614
+ AudioStreamEOS.fields = proto3.util.newFieldList(() => []);
708
615
  /**
709
616
  * @generated from message livekit.proto.AudioSourceOptions
710
617
  */
711
- class AudioSourceOptions extends protobuf_1.Message {
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioSourceOptions, a, b);
645
+ return proto3.util.equals(AudioSourceOptions, a, b);
739
646
  }
740
647
  }
741
- exports.AudioSourceOptions = AudioSourceOptions;
742
- AudioSourceOptions.runtime = protobuf_1.proto3;
648
+ AudioSourceOptions.runtime = proto3;
743
649
  AudioSourceOptions.typeName = "livekit.proto.AudioSourceOptions";
744
- AudioSourceOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
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 protobuf_1.Message {
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
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioSourceInfo, a, b);
677
+ return proto3.util.equals(AudioSourceInfo, a, b);
772
678
  }
773
679
  }
774
- exports.AudioSourceInfo = AudioSourceInfo;
775
- AudioSourceInfo.runtime = protobuf_1.proto3;
680
+ AudioSourceInfo.runtime = proto3;
776
681
  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) },
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 protobuf_1.Message {
688
+ export class OwnedAudioSource extends Message {
784
689
  constructor(data) {
785
690
  super();
786
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(OwnedAudioSource, a, b);
703
+ return proto3.util.equals(OwnedAudioSource, a, b);
799
704
  }
800
705
  }
801
- exports.OwnedAudioSource = OwnedAudioSource;
802
- OwnedAudioSource.runtime = protobuf_1.proto3;
706
+ OwnedAudioSource.runtime = proto3;
803
707
  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 },
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 protobuf_1.Message {
715
+ export class AudioResamplerInfo extends Message {
812
716
  constructor(data) {
813
717
  super();
814
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(AudioResamplerInfo, a, b);
730
+ return proto3.util.equals(AudioResamplerInfo, a, b);
827
731
  }
828
732
  }
829
- exports.AudioResamplerInfo = AudioResamplerInfo;
830
- AudioResamplerInfo.runtime = protobuf_1.proto3;
733
+ AudioResamplerInfo.runtime = proto3;
831
734
  AudioResamplerInfo.typeName = "livekit.proto.AudioResamplerInfo";
832
- AudioResamplerInfo.fields = protobuf_1.proto3.util.newFieldList(() => []);
735
+ AudioResamplerInfo.fields = proto3.util.newFieldList(() => []);
833
736
  /**
834
737
  * @generated from message livekit.proto.OwnedAudioResampler
835
738
  */
836
- class OwnedAudioResampler extends protobuf_1.Message {
739
+ export class OwnedAudioResampler extends Message {
837
740
  constructor(data) {
838
741
  super();
839
- protobuf_1.proto3.util.initPartial(data, this);
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 protobuf_1.proto3.util.equals(OwnedAudioResampler, a, b);
754
+ return proto3.util.equals(OwnedAudioResampler, a, b);
852
755
  }
853
756
  }
854
- exports.OwnedAudioResampler = OwnedAudioResampler;
855
- OwnedAudioResampler.runtime = protobuf_1.proto3;
757
+ OwnedAudioResampler.runtime = proto3;
856
758
  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 },
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