diff --git a/BuildScripts~/generate_proto.sh b/BuildScripts~/generate_proto.sh
index 308d09bf..2e5005b0 100755
--- a/BuildScripts~/generate_proto.sh
+++ b/BuildScripts~/generate_proto.sh
@@ -6,13 +6,15 @@ OUT_CSHARP=../Runtime/Scripts/Proto
protoc \
-I=$FFI_PROTOCOL \
--csharp_out=$OUT_CSHARP \
- $FFI_PROTOCOL/audio_frame.proto \
- $FFI_PROTOCOL/e2ee.proto \
$FFI_PROTOCOL/ffi.proto \
$FFI_PROTOCOL/handle.proto \
- $FFI_PROTOCOL/participant.proto \
$FFI_PROTOCOL/room.proto \
- $FFI_PROTOCOL/stats.proto \
$FFI_PROTOCOL/track.proto \
+ $FFI_PROTOCOL/track_publication.proto \
+ $FFI_PROTOCOL/participant.proto \
$FFI_PROTOCOL/video_frame.proto \
- $FFI_PROTOCOL/rpc.proto
+ $FFI_PROTOCOL/audio_frame.proto \
+ $FFI_PROTOCOL/e2ee.proto \
+ $FFI_PROTOCOL/stats.proto \
+ $FFI_PROTOCOL/rpc.proto \
+ $FFI_PROTOCOL/data_stream.proto
\ No newline at end of file
diff --git a/README.md b/README.md
index 6e305316..339bb7b8 100644
--- a/README.md
+++ b/README.md
@@ -198,7 +198,7 @@ void TrackSubscribed(IRemoteTrack track, RemoteTrackPublication publication, Rem
### RPC
-Perform your own predefined method calls from one participant to another.
+Perform your own predefined method calls from one participant to another.
This feature is especially powerful when used with [Agents](https://docs.livekit.io/agents), for instance to forward LLM function calls to your client application.
@@ -235,7 +235,7 @@ IEnumerator PerformRpcCoroutine()
Method = "greet",
Payload = "Hello from RPC!"
});
-
+
yield return rpcCall;
if (rpcCall.IsError)
@@ -256,11 +256,174 @@ You may find it useful to adjust the `ResponseTimeout` parameter, which indicate
#### Errors
-LiveKit is a dynamic realtime environment and RPC calls can fail for various reasons.
+LiveKit is a dynamic realtime environment and RPC calls can fail for various reasons.
You may throw errors of the type `RpcError` with a string `message` in an RPC method handler and they will be received on the caller's side with the message intact. Other errors will not be transmitted and will instead arrive to the caller as `1500` ("Application Error"). Other built-in errors are detailed in the [docs](https://docs.livekit.io/home/client/data/rpc/#errors).
+### Sending text
+
+Use text streams to send any amount of text between participants.
+
+#### Sending text all at once
+
+```cs
+IEnumerator PerformSendText()
+{
+ var text = "Lorem ipsum dolor sit amet...";
+ var sendTextCall = room.LocalParticipant.SendText(text, "some-topic");
+ yield return sendTextCall;
+
+ Debug.Log($"Sent text with stream ID {sendTextCall.Info.Id}");
+}
+```
+
+#### Streaming text incrementally
+
+```cs
+IEnumerator PerformStreamText()
+{
+ var streamTextCall = room.LocalParticipant.StreamText("my-topic");
+ yield return streamTextCall;
+
+ var writer = streamTextCall.Writer;
+ Debug.Log($"Opened text stream with ID: {writer.Info.Id}");
+
+ // In a real app, you would generate this text asynchronously / incrementally as well
+ var textChunks = new[] { "Lorem ", "ipsum ", "dolor ", "sit ", "amet..." };
+ foreach (var chunk in textChunks)
+ {
+ yield return writer.Write(chunk);
+ }
+
+ // The stream must be explicitly closed when done
+ yield return writer.Close();
+
+ Debug.Log($"Closed text stream with ID: {writer.Info.Id}");
+}
+```
+
+#### Handling incoming streams
+
+```cs
+IEnumerator HandleTextStream(TextStreamReader reader, string participantIdentity)
+{
+ var info = reader.Info;
+ Debug.Log($@"
+ Text stream received from {participantIdentity}
+ Topic: {info.Topic}
+ Timestamp: {info.Timestamp}
+ ID: {info.Id}
+ Size: {info.TotalLength} (only available if the stream was sent with `SendText`)
+ ");
+
+ // Option 1: Process the stream incrementally
+ var readIncremental = reader.ReadIncremental();
+ while (!readIncremental.IsEos)
+ {
+ readIncremental.Reset();
+ yield return readIncremental;
+ Debug.Log($"Next chunk: {readIncremental.Text}");
+ }
+
+ // Option 2: Get the entire text after the stream completes
+ var readAllCall = reader.ReadAll();
+ yield return readAllCall;
+ Debug.Log($"Received text: {readAllCall.Text}")
+}
+
+// Register the topic before connecting to the room
+room.RegisterTextStreamHandler("my-topic", (reader, identity) =>
+ StartCoroutine(HandleTextStream(reader, identity))
+);
+```
+
+### Sending files & bytes
+
+Use byte streams to send files, images, or any other kind of data between participants.
+
+#### Sending files
+
+```cs
+IEnumerator PerformSendFile()
+{
+ var filePath = "path/to/file.jpg";
+ var sendFileCall = room.LocalParticipant.SendFile(filePath, "some-topic");
+ yield return sendFileCall;
+
+ Debug.Log($"Sent file with stream ID: {sendFileCall.Info.Id}");
+}
+```
+
+#### Streaming bytes
+
+```cs
+IEnumerator PerformStreamBytes()
+{
+ var streamBytesCall = room.LocalParticipant.StreamBytes("my-topic");
+ yield return streamBytesCall;
+
+ var writer = streamBytesCall.Writer;
+ Debug.Log($"Opened byte stream with ID: {writer.Info.Id}");
+
+ // Example sending arbitrary binary data
+ // For sending files, use `SendFile` instead
+ var dataChunks = new[] {
+ new byte[] { 0x00, 0x01 },
+ new byte[] { 0x03, 0x04 }
+ };
+ foreach (var chunk in dataChunks)
+ {
+ yield return writer.Write(chunk);
+ }
+
+ // The stream must be explicitly closed when done
+ yield return writer.Close();
+
+ Debug.Log($"Closed byte stream with ID: {writer.Info.Id}");
+}
+```
+
+#### Handling incoming streams
+```cs
+IEnumerator HandleByteStream(ByteStreamReader reader, string participantIdentity)
+{
+ var info = reader.Info;
+
+ // Option 1: Process the stream incrementally
+ var readIncremental = reader.ReadIncremental();
+ while (!readIncremental.IsEos)
+ {
+ readIncremental.Reset();
+ yield return readIncremental;
+ Debug.Log($"Next chunk: {readIncremental.Bytes}");
+ }
+
+ // Option 2: Get the entire file after the stream completes
+ var readAllCall = reader.ReadAll();
+ yield return readAllCall;
+ var data = readAllCall.Bytes;
+
+ // Option 3: Write the stream to a local file on disk as it arrives
+ var writeToFileCall = reader.WriteToFile();
+ yield return writeToFileCall;
+ var path = writeToFileCall.FilePath;
+ Debug.Log($"Wrote to file: {path}");
+
+ Debug.Log($@"
+ Byte stream received from {participantIdentity}
+ Topic: {info.Topic}
+ Timestamp: {info.Timestamp}
+ ID: {info.Id}
+ Size: {info.TotalLength} (only available if the stream was sent with `SendFile`)
+ ");
+}
+
+// Register the topic after connection to the room
+room.RegisterByteStreamHandler("my-topic", (reader, identity) =>
+ StartCoroutine(HandleByteStream(reader, identity))
+);
+```
diff --git a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a
index e671cc75..2b240650 100644
--- a/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a
+++ b/Runtime/Plugins/ffi-ios-arm64/liblivekit_ffi.a
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:739851187aa82b80cccb6f54b8051d21f41ed2950bb04c69707809ef54a638e6
-size 389770720
+oid sha256:0faf50c97678a0e7cc14ba44fa9388600c989d34f5eba10c43b20c098c8ea02c
+size 390456280
diff --git a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a
index 00ea141a..fcdb16f4 100644
--- a/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a
+++ b/Runtime/Plugins/ffi-ios-sim-arm64/liblivekit_ffi.a
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:5522f18ce78eb1f50cb4ca7e3769196defc8539f7c441fba260159152029525c
-size 390225536
+oid sha256:2060a7550703e2d6f3902294aab6a7d35e6365388c7c54897033581710384b6b
+size 390952040
diff --git a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so
index 5c0d766e..9a4ce346 100644
--- a/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so
+++ b/Runtime/Plugins/ffi-linux-arm64/liblivekit_ffi.so
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9fb3fbf5f1ee14627ac4cbade4c01d0bbbc618871a33fa86d3cc0a1ceeb9ee3c
-size 22431680
+oid sha256:d8f2197a320a325c45991a8d4fac73c0afed21af231b5629025bc6295d2d8072
+size 22892808
diff --git a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so
index 990885ab..3b863a85 100644
--- a/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so
+++ b/Runtime/Plugins/ffi-linux-x86_64/liblivekit_ffi.so
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:fd951fec55fd911b5c5579ed11e23b62232e3ef37d2b6cd4ab3df60039004bcc
-size 28248048
+oid sha256:900fee3e36c07a58aa04a0fc4e8c638e526be1feaf7f6166e0f77ba4311c5cb1
+size 28893512
diff --git a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib
index 3aafcb46..4f693dac 100644
--- a/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib
+++ b/Runtime/Plugins/ffi-macos-arm64/liblivekit_ffi.dylib
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:6bab83c74518c607ad63663a0bbeba5b7ba3273c99be23aa480d96050e71dcd0
-size 19029584
+oid sha256:809c8df28fbcce2a8f97a479e0f43594c347eebb03f56b8a391281e3b5c3c4e6
+size 19481568
diff --git a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib
index 7704cc93..1e6649c0 100644
--- a/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib
+++ b/Runtime/Plugins/ffi-macos-x86_64/liblivekit_ffi.dylib
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:91f61ac6942f40137dd6132f3769c584b3e916a51b9930a635c809b39abeb366
-size 23943212
+oid sha256:ec17d30409e1f02454504a9436f158177ee65231d802c792b4f28a21308fc7f8
+size 24491668
diff --git a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll
index 3d602b8b..11bd586f 100644
--- a/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll
+++ b/Runtime/Plugins/ffi-windows-arm64/livekit_ffi.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:9cfe667483e9d15a4d85cd09b45bc748e793d4cc58bd9fa3328db942c6815d5a
-size 19950592
+oid sha256:0ae9e59502a4c77502f15d6ee144e62985a0aeee5542721b966a701f84259db1
+size 20545536
diff --git a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll
index 9bb93b16..f9abaf5c 100644
--- a/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll
+++ b/Runtime/Plugins/ffi-windows-x86_64/livekit_ffi.dll
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:848f5c47f7f67ab524bf5c89b9167f820670146e42dc76929c5461d96b1328a4
-size 26507264
+oid sha256:edc94f69b5647a73890ce44818d3bf1a9003681f8572b4b6bbebcc07ffc279b2
+size 27193344
diff --git a/Runtime/Scripts/DataStream.cs b/Runtime/Scripts/DataStream.cs
new file mode 100644
index 00000000..b41becfe
--- /dev/null
+++ b/Runtime/Scripts/DataStream.cs
@@ -0,0 +1,901 @@
+using System;
+using System.Collections.Generic;
+using LiveKit.Internal.FFIClients.Requests;
+using System.Linq;
+using System.Threading.Tasks;
+using LiveKit.Internal;
+using LiveKit.Proto;
+
+namespace LiveKit
+{
+ ///
+ /// Information about a data stream.
+ ///
+ public class StreamInfo
+ {
+ ///
+ /// Unique identifier of the stream.
+ ///
+ public string Id { get; }
+
+ ///
+ /// Topic name used to route the stream to the appropriate handler.
+ ///
+ public string Topic { get; }
+
+ ///
+ /// When the stream was created.
+ ///
+ public DateTime Timestamp { get; }
+
+ ///
+ /// Total expected size in bytes, if known.
+ ///
+ public ulong? TotalLength { get; }
+
+ ///
+ /// Additional attributes as needed for your application.
+ ///
+ public IReadOnlyDictionary Attributes { get; }
+
+ ///
+ /// The MIME type of the stream data.
+ ///
+ public string MimeType { get; }
+
+ internal StreamInfo(
+ string id,
+ string topic,
+ long timestamp,
+ ulong? totalLength,
+ Google.Protobuf.Collections.MapField attributes,
+ string mimeType)
+ {
+ Id = id;
+ Topic = topic;
+ Timestamp = DateTimeOffset.FromUnixTimeMilliseconds(timestamp).DateTime;
+ TotalLength = totalLength;
+ Attributes = attributes.ToDictionary(kvp => kvp.Key, kvp => kvp.Value);
+ MimeType = mimeType;
+ }
+ }
+
+ ///
+ /// Information about a text data stream.
+ ///
+ public sealed class TextStreamInfo : StreamInfo
+ {
+ ///
+ /// Operation type for text streams.
+ ///
+ public enum OperationType
+ {
+ Create = 0,
+ Update = 1,
+ Delete = 2,
+ Reaction = 3
+ }
+
+ public OperationType Operation { get; }
+ public int Version { get; }
+ public string ReplyToStreamId { get; }
+ public IReadOnlyList AttachedStreamIds { get; }
+ public bool Generated { get; }
+
+ internal TextStreamInfo(Proto.TextStreamInfo proto) : base(
+ proto.StreamId,
+ proto.Topic,
+ proto.Timestamp,
+ proto.TotalLength,
+ proto.Attributes,
+ proto.MimeType)
+ {
+ Operation = (OperationType)proto.OperationType;
+ Version = proto.Version;
+ ReplyToStreamId = proto.ReplyToStreamId;
+ AttachedStreamIds = proto.AttachedStreamIds;
+ Generated = proto.Generated;
+ }
+ }
+
+ ///
+ /// Information about a byte data stream.
+ ///
+ public sealed class ByteStreamInfo : StreamInfo
+ {
+ public string Name { get; }
+
+ internal ByteStreamInfo(Proto.ByteStreamInfo proto) : base(
+ proto.StreamId,
+ proto.Topic,
+ proto.Timestamp,
+ proto.TotalLength,
+ proto.Attributes,
+ proto.MimeType)
+ {
+ Name = proto.Name;
+ }
+ }
+
+ ///
+ /// Delegate for handling incoming text data streams.
+ ///
+ public delegate void TextStreamHandler(TextStreamReader reader, string identity);
+
+ ///
+ /// Delegate for handling incoming byte data streams.
+ ///
+ public delegate void ByteStreamHandler(ByteStreamReader reader, string identity);
+
+ ///
+ /// Error for data stream operations.
+ ///
+ public sealed class StreamError : Exception
+ {
+ public StreamError(string message) : base(message) { }
+
+ internal StreamError(Proto.StreamError proto) : base(proto.Description) { }
+ }
+
+ ///
+ /// Reader for an incoming text data stream.
+ ///
+ public sealed class TextStreamReader
+ {
+ private readonly FfiHandle _handle;
+ private readonly TextStreamInfo _info;
+
+ internal TextStreamReader(OwnedTextStreamReader info)
+ {
+ _handle = FfiHandle.FromOwnedHandle(info.Handle);
+ _info = new TextStreamInfo(info.Info);
+ }
+
+ public TextStreamInfo Info => _info;
+
+ ///
+ /// Reads all incoming chunks from the stream, concatenating them into a single value
+ /// once the stream closes normally.
+ ///
+ /// Calling this method consumes the stream reader.
+ ///
+ /// A that completes when the stream is complete or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ public ReadAllInstruction ReadAll()
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var readAllReq = request.request;
+ readAllReq.ReaderHandle = (ulong)_handle.DangerousGetHandle();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new ReadAllInstruction(res.TextReadAll.AsyncId);
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class ReadAllInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private string _text;
+
+ internal ReadAllInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.TextStreamReaderReadAllReceived += OnReadAll;
+ }
+
+ internal void OnReadAll(TextStreamReaderReadAllCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case TextStreamReaderReadAllCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case TextStreamReaderReadAllCallback.ResultOneofCase.Content:
+ _text = e.Content;
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.TextStreamReaderReadAllReceived -= OnReadAll;
+ }
+
+ public string Text
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _text;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// Reads incoming chunks from the stream incrementally.
+ ///
+ ///
+ /// A that allows reading the stream incrementally.
+ ///
+ public ReadIncrementalInstruction ReadIncremental()
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var readIncReq = request.request;
+ readIncReq.ReaderHandle = (ulong)_handle.DangerousGetHandle();
+ request.Send();
+
+ return new ReadIncrementalInstruction(_handle);
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Usage: while is false (i.e. the stream has not ended),
+ /// call , yield the instruction, and then access .
+ ///
+ public sealed class ReadIncrementalInstruction : StreamYieldInstruction
+ {
+ private readonly FfiHandle _handle;
+ private string _latestChunk;
+
+ internal ReadIncrementalInstruction(FfiHandle readerHandle)
+ {
+ _handle = readerHandle;
+ FfiClient.Instance.TextStreamReaderEventReceived += OnStreamEvent;
+ }
+
+ private void OnStreamEvent(TextStreamReaderEvent e)
+ {
+ if (e.ReaderHandle != (ulong)_handle.DangerousGetHandle())
+ return;
+
+ switch (e.DetailCase)
+ {
+ case TextStreamReaderEvent.DetailOneofCase.ChunkReceived:
+ _latestChunk = e.ChunkReceived.Content;
+ IsCurrentReadDone = true;
+ break;
+ case TextStreamReaderEvent.DetailOneofCase.Eos:
+ IsEos = true;
+ if (e.Eos.Error != null)
+ {
+ Error = new StreamError(e.Eos.Error);
+ }
+ FfiClient.Instance.TextStreamReaderEventReceived -= OnStreamEvent;
+ break;
+ }
+ }
+
+ public string Text
+ {
+ get
+ {
+ if (Error != null) throw Error;
+ return _latestChunk;
+ }
+ }
+
+ ///
+ /// True if an error occurred on the last read.
+ ///
+ public bool IsError => Error != null;
+
+ ///
+ /// Error that occurred on the last read, if any.
+ ///
+ public StreamError Error { get; private set; }
+ }
+ }
+
+ ///
+ /// Reader for an incoming byte data stream.
+ ///
+ public sealed class ByteStreamReader
+ {
+ private FfiHandle _handle;
+ private readonly ByteStreamInfo _info;
+
+ internal ByteStreamReader(OwnedByteStreamReader info)
+ {
+ _handle = FfiHandle.FromOwnedHandle(info.Handle);
+ _info = new ByteStreamInfo(info.Info);
+ }
+
+ public ByteStreamInfo Info => _info;
+
+ ///
+ /// Reads all incoming chunks from the stream, concatenating them into a single value
+ /// once the stream closes normally.
+ ///
+ /// Calling this method consumes the stream reader.
+ ///
+ /// A that completes when the stream is complete or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ public ReadAllInstruction ReadAll()
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var readAllReq = request.request;
+ readAllReq.ReaderHandle = (ulong)_handle.DangerousGetHandle();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new ReadAllInstruction(res.ByteReadAll.AsyncId);
+ }
+
+ ///
+ /// Reads incoming chunks from the stream incrementally.
+ ///
+ ///
+ /// A that allows reading the stream incrementally.
+ ///
+ public ReadIncrementalInstruction ReadIncremental()
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var readIncReq = request.request;
+ readIncReq.ReaderHandle = (ulong)_handle.DangerousGetHandle();
+ request.Send();
+
+ return new ReadIncrementalInstruction(_handle);
+ }
+
+ ///
+ /// Reads incoming chunks from the byte stream, writing them to a file as they are received.
+ ///
+ /// The directory to write the file in. The system temporary directory is used if not specified.
+ /// The name to use for the written file, overriding stream name.
+ ///
+ /// Calling this method consumes the stream reader.
+ ///
+ ///
+ /// A that completes when the stream is complete or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ public WriteToFileInstruction WriteToFile(string directory = null, string nameOverride = null)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var writeToFileReq = request.request;
+ writeToFileReq.ReaderHandle = (ulong)_handle.DangerousGetHandle();
+ writeToFileReq.Directory = directory;
+ writeToFileReq.NameOverride = nameOverride;
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new WriteToFileInstruction(res.ByteWriteToFile.AsyncId);
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class ReadAllInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private byte[] _bytes;
+
+ internal ReadAllInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.ByteStreamReaderReadAllReceived += OnReadAll;
+ }
+
+ internal void OnReadAll(ByteStreamReaderReadAllCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case ByteStreamReaderReadAllCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case ByteStreamReaderReadAllCallback.ResultOneofCase.Content:
+ _bytes = e.Content.ToArray();
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.ByteStreamReaderReadAllReceived -= OnReadAll;
+ }
+
+ public byte[] Bytes
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _bytes;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Usage: while is false (i.e. the stream has not ended),
+ /// call , yield the instruction, and then access .
+ ///
+ public sealed class ReadIncrementalInstruction : StreamYieldInstruction
+ {
+ private readonly FfiHandle _handle;
+ private byte[] _latestChunk;
+
+ internal ReadIncrementalInstruction(FfiHandle readerHandle)
+ {
+ _handle = readerHandle;
+ FfiClient.Instance.ByteStreamReaderEventReceived += OnStreamEvent;
+ }
+
+ private void OnStreamEvent(ByteStreamReaderEvent e)
+ {
+ if (e.ReaderHandle != (ulong)_handle.DangerousGetHandle())
+ return;
+
+ switch (e.DetailCase)
+ {
+ case ByteStreamReaderEvent.DetailOneofCase.ChunkReceived:
+ _latestChunk = e.ChunkReceived.Content.ToByteArray();
+ IsCurrentReadDone = true;
+ break;
+ case ByteStreamReaderEvent.DetailOneofCase.Eos:
+ IsEos = true;
+ if (e.Eos.Error != null)
+ {
+ Error = new StreamError(e.Eos.Error);
+ }
+ FfiClient.Instance.ByteStreamReaderEventReceived -= OnStreamEvent;
+ break;
+ }
+ }
+
+ public byte[] Bytes
+ {
+ get
+ {
+ if (Error != null) throw Error;
+ return _latestChunk;
+ }
+ }
+
+ ///
+ /// True if an error occurred on the last read.
+ ///
+ public bool IsError => Error != null;
+
+ ///
+ /// Error that occurred on the last read, if any.
+ ///
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class WriteToFileInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private string _filePath;
+
+ internal WriteToFileInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.ByteStreamReaderWriteToFileReceived += OnWriteToFile;
+ }
+
+ internal void OnWriteToFile(ByteStreamReaderWriteToFileCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case ByteStreamReaderWriteToFileCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case ByteStreamReaderWriteToFileCallback.ResultOneofCase.FilePath:
+ _filePath = e.FilePath;
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.ByteStreamReaderWriteToFileReceived -= OnWriteToFile;
+ }
+
+ ///
+ /// Path to the file that was written.
+ ///
+ public string FilePath
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _filePath;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+ }
+
+ ///
+ /// Options used when opening an outgoing data stream.
+ ///
+ public class StreamOptions
+ {
+ public string Topic { get; set; }
+ public IDictionary Attributes { get; set; } = new Dictionary();
+ public List DestinationIdentities { get; set; } = new List();
+ public string Id { get; set; }
+ }
+
+ ///
+ /// Options used when opening an outgoing text data stream.
+ ///
+ public class StreamTextOptions : StreamOptions
+ {
+ public TextStreamInfo.OperationType? OperationType { get; set; }
+ public int? Version { get; set; }
+ public string ReplyToStreamId { get; set; }
+ public List AttachedStreamIds { get; set; } = new List();
+ public bool? Generated { get; set; }
+
+ internal Proto.StreamTextOptions ToProto()
+ {
+ var proto = new Proto.StreamTextOptions();
+ if (Topic == null)
+ {
+ throw new InvalidOperationException("Topic field is required");
+ }
+ proto.Topic = Topic;
+ proto.Attributes.Add(Attributes);
+ proto.DestinationIdentities.AddRange(DestinationIdentities);
+
+ // TODO: these fields are optional, but the generated proto is not allowing null values
+ if (Id != null) proto.Id = Id;
+ if (OperationType != null) proto.OperationType = (Proto.TextStreamInfo.Types.OperationType)OperationType;
+ if (Version != null) proto.Version = Version.Value;
+ if (ReplyToStreamId != null) proto.ReplyToStreamId = ReplyToStreamId;
+ proto.AttachedStreamIds.AddRange(AttachedStreamIds);
+ if (Generated != null) proto.Generated = Generated.Value;
+ return proto;
+ }
+ }
+
+ ///
+ /// Options used when opening an outgoing byte data stream.
+ ///
+ public class StreamByteOptions : StreamOptions
+ {
+ public string MimeType { get; set; }
+ public string Name { get; set; }
+ public ulong? TotalLength { get; set; }
+
+ internal Proto.StreamByteOptions ToProto()
+ {
+ var proto = new Proto.StreamByteOptions();
+ if (Topic == null)
+ {
+ throw new InvalidOperationException("Topic field is required");
+ }
+ proto.Topic = Topic;
+ proto.Attributes.Add(Attributes);
+ proto.DestinationIdentities.AddRange(DestinationIdentities);
+ // TODO: these fields are optional, but the generated proto is not allowing null values
+ if (Id != null) proto.Id = Id;
+ if (MimeType != null) proto.MimeType = MimeType;
+ if (Name != null) proto.Name = Name;
+ if (TotalLength != null) proto.TotalLength = TotalLength.Value;
+ return proto;
+ }
+ }
+
+ ///
+ /// Writer for an outgoing text data stream.
+ ///
+ public class TextStreamWriter
+ {
+ private FfiHandle _handle;
+ private readonly TextStreamInfo _info;
+
+ internal TextStreamWriter(OwnedTextStreamWriter info)
+ {
+ _handle = FfiHandle.FromOwnedHandle(info.Handle);
+ _info = new TextStreamInfo(info.Info);
+ }
+
+ public TextStreamInfo Info => _info;
+
+ ///
+ /// Writes text to the stream.
+ ///
+ /// The text to write.
+ ///
+ /// A that completes when the write operation is complete or errors.
+ /// Check to see if the operation was successful.
+ ///
+ public WriteInstruction Write(string text)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var writeReq = request.request;
+ writeReq.WriterHandle = (ulong)_handle.DangerousGetHandle();
+ writeReq.Text = text;
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new WriteInstruction(res.TextStreamWrite.AsyncId);
+ }
+
+ ///
+ /// Closes the stream.
+ ///
+ /// A string specifying the reason for closure, if the stream is not being closed normally.
+ ///
+ /// A that completes when the close operation is complete or errors.
+ /// Check to see if the operation was successful.
+ ///
+ public CloseInstruction Close(string reason = null)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var closeReq = request.request;
+ closeReq.WriterHandle = (ulong)_handle.DangerousGetHandle();
+ closeReq.Reason = reason;
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new CloseInstruction(res.TextStreamWrite.AsyncId);
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Check if the operation was successful by accessing .
+ ///
+ public sealed class WriteInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+
+ internal WriteInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.ByteStreamWriterWriteReceived += OnWrite;
+ }
+
+ internal void OnWrite(ByteStreamWriterWriteCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ if (e.Error != null)
+ {
+ Error = new StreamError(e.Error);
+ IsError = true;
+ }
+ IsDone = true;
+ FfiClient.Instance.ByteStreamWriterWriteReceived -= OnWrite;
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Check if the operation was successful by accessing .
+ ///
+ public sealed class CloseInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+
+ internal CloseInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.ByteStreamWriterCloseReceived += OnClose;
+ }
+
+ internal void OnClose(ByteStreamWriterCloseCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ if (e.Error != null)
+ {
+ Error = new StreamError(e.Error);
+ IsError = true;
+ }
+ IsDone = true;
+ FfiClient.Instance.ByteStreamWriterCloseReceived -= OnClose;
+ }
+
+ public StreamError Error { get; private set; }
+ }
+ }
+
+ ///
+ /// Writer for an outgoing byte data stream.
+ ///
+ public class ByteStreamWriter
+ {
+ private FfiHandle _handle;
+ private readonly ByteStreamInfo _info;
+
+ internal ByteStreamWriter(OwnedByteStreamWriter info)
+ {
+ _handle = FfiHandle.FromOwnedHandle(info.Handle);
+ _info = new ByteStreamInfo(info.Info);
+ }
+
+ public ByteStreamInfo Info => _info;
+
+ ///
+ /// Writes bytes to the stream.
+ ///
+ /// The bytes to write.
+ ///
+ /// A that completes when the write operation is complete or errors.
+ ///
+ public WriteInstruction Write(byte[] bytes)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var writeReq = request.request;
+ writeReq.WriterHandle = (ulong)_handle.DangerousGetHandle();
+ writeReq.Bytes = Google.Protobuf.ByteString.CopyFrom(bytes);
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new WriteInstruction(res.ByteStreamWrite.AsyncId);
+ }
+
+ ///
+ /// Closes the stream.
+ ///
+ /// A string specifying the reason for closure, if the stream is not being closed normally.
+ ///
+ /// A that completes when the close operation is complete or errors.
+ ///
+ public CloseInstruction Close(string reason = null)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var closeReq = request.request;
+ closeReq.WriterHandle = (ulong)_handle.DangerousGetHandle();
+ closeReq.Reason = reason;
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new CloseInstruction(res.ByteStreamWrite.AsyncId);
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Check if the operation was successful by accessing .
+ ///
+ public sealed class WriteInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+
+ internal WriteInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.TextStreamWriterWriteReceived += OnWrite;
+ }
+
+ internal void OnWrite(TextStreamWriterWriteCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ if (e.Error != null)
+ {
+ Error = new StreamError(e.Error);
+ IsError = true;
+ }
+ IsDone = true;
+ FfiClient.Instance.TextStreamWriterWriteReceived -= OnWrite;
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for .
+ ///
+ ///
+ /// Check if the operation was successful by accessing .
+ ///
+ public sealed class CloseInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+
+ internal CloseInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.TextStreamWriterCloseReceived += OnClose;
+ }
+
+ internal void OnClose(TextStreamWriterCloseCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ if (e.Error != null)
+ {
+ Error = new StreamError(e.Error);
+ IsError = true;
+ }
+ IsDone = true;
+ FfiClient.Instance.TextStreamWriterCloseReceived -= OnClose;
+ }
+
+ public StreamError Error { get; private set; }
+ }
+ }
+
+ internal sealed class StreamHandlerRegistry
+ {
+ private readonly Dictionary _textStreamHandlers = new();
+ private readonly Dictionary _byteStreamHandlers = new();
+
+ internal void RegisterTextStreamHandler(string topic, TextStreamHandler handler)
+ {
+ if (!_textStreamHandlers.TryAdd(topic, handler))
+ {
+ throw new StreamError($"Text stream handler already registered for topic: {topic}");
+ }
+ }
+
+ internal void RegisterByteStreamHandler(string topic, ByteStreamHandler handler)
+ {
+ if (!_byteStreamHandlers.TryAdd(topic, handler))
+ {
+ throw new StreamError($"Byte stream handler already registered for topic: {topic}");
+ }
+ }
+
+ internal void UnregisterTextStreamHandler(string topic) => _textStreamHandlers.Remove(topic);
+ internal void UnregisterByteStreamHandler(string topic) => _byteStreamHandlers.Remove(topic);
+
+ internal bool Dispatch(TextStreamReader reader, string participantIdentity)
+ {
+ if (_textStreamHandlers.TryGetValue(reader.Info.Topic, out var handler))
+ {
+ handler(reader, participantIdentity);
+ return true;
+ }
+ return false;
+ }
+
+ internal bool Dispatch(ByteStreamReader reader, string participantIdentity)
+ {
+ if (_byteStreamHandlers.TryGetValue(reader.Info.Topic, out var handler))
+ {
+ handler(reader, participantIdentity);
+ return true;
+ }
+ return false;
+ }
+ }
+}
\ No newline at end of file
diff --git a/Runtime/Scripts/DataStream.cs.meta b/Runtime/Scripts/DataStream.cs.meta
new file mode 100644
index 00000000..b0716f0e
--- /dev/null
+++ b/Runtime/Scripts/DataStream.cs.meta
@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 87d7370f2615f41c49056eca4cacee1d
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/Runtime/Scripts/Internal/FFIClient.cs b/Runtime/Scripts/Internal/FFIClient.cs
index d55901cc..de47274b 100644
--- a/Runtime/Scripts/Internal/FFIClient.cs
+++ b/Runtime/Scripts/Internal/FFIClient.cs
@@ -46,6 +46,20 @@ internal sealed class FfiClient : IFFIClient
public event PerformRpcReceivedDelegate? PerformRpcReceived;
+ public event ByteStreamReaderEventReceivedDelegate? ByteStreamReaderEventReceived;
+ public event ByteStreamReaderReadAllReceivedDelegate? ByteStreamReaderReadAllReceived;
+ public event ByteStreamReaderWriteToFileReceivedDelegate? ByteStreamReaderWriteToFileReceived;
+ public event ByteStreamOpenReceivedDelegate? ByteStreamOpenReceived;
+ public event ByteStreamWriterWriteReceivedDelegate? ByteStreamWriterWriteReceived;
+ public event ByteStreamWriterCloseReceivedDelegate? ByteStreamWriterCloseReceived;
+ public event SendFileReceivedDelegate? SendFileReceived;
+ public event TextStreamReaderEventReceivedDelegate? TextStreamReaderEventReceived;
+ public event TextStreamReaderReadAllReceivedDelegate? TextStreamReaderReadAllReceived;
+ public event TextStreamOpenReceivedDelegate? TextStreamOpenReceived;
+ public event TextStreamWriterWriteReceivedDelegate? TextStreamWriterWriteReceived;
+ public event TextStreamWriterCloseReceivedDelegate? TextStreamWriterCloseReceived;
+ public event SendTextReceivedDelegate? SendTextReceived;
+
public FfiClient() : this(Pools.NewFfiResponsePool(), new ArrayMemoryPool())
{
}
@@ -195,7 +209,7 @@ out UIntPtr dataLen
{
// Since we are in a thread I want to make sure we catch and log
Utils.Error(e);
- // But we aren't actually handling this exception so we should re-throw here
+ // But we aren't actually handling this exception so we should re-throw here
throw new Exception("Cannot send request", e);
}
}
@@ -265,6 +279,46 @@ static unsafe void FFICallback(UIntPtr data, UIntPtr size)
case FfiEvent.MessageOneofCase.PerformRpc:
Instance.PerformRpcReceived?.Invoke(r.PerformRpc!);
break;
+ // Uses high-level data stream interface
+ case FfiEvent.MessageOneofCase.ByteStreamReaderEvent:
+ Instance.ByteStreamReaderEventReceived?.Invoke(r.ByteStreamReaderEvent!);
+ break;
+ case FfiEvent.MessageOneofCase.ByteStreamReaderReadAll:
+ Instance.ByteStreamReaderReadAllReceived?.Invoke(r.ByteStreamReaderReadAll!);
+ break;
+ case FfiEvent.MessageOneofCase.ByteStreamReaderWriteToFile:
+ Instance.ByteStreamReaderWriteToFileReceived?.Invoke(r.ByteStreamReaderWriteToFile!);
+ break;
+ case FfiEvent.MessageOneofCase.ByteStreamOpen:
+ Instance.ByteStreamOpenReceived?.Invoke(r.ByteStreamOpen!);
+ break;
+ case FfiEvent.MessageOneofCase.ByteStreamWriterWrite:
+ Instance.ByteStreamWriterWriteReceived?.Invoke(r.ByteStreamWriterWrite!);
+ break;
+ case FfiEvent.MessageOneofCase.ByteStreamWriterClose:
+ Instance.ByteStreamWriterCloseReceived?.Invoke(r.ByteStreamWriterClose!);
+ break;
+ case FfiEvent.MessageOneofCase.SendFile:
+ Instance.SendFileReceived?.Invoke(r.SendFile!);
+ break;
+ case FfiEvent.MessageOneofCase.TextStreamReaderEvent:
+ Instance.TextStreamReaderEventReceived?.Invoke(r.TextStreamReaderEvent!);
+ break;
+ case FfiEvent.MessageOneofCase.TextStreamReaderReadAll:
+ Instance.TextStreamReaderReadAllReceived?.Invoke(r.TextStreamReaderReadAll!);
+ break;
+ case FfiEvent.MessageOneofCase.TextStreamOpen:
+ Instance.TextStreamOpenReceived?.Invoke(r.TextStreamOpen!);
+ break;
+ case FfiEvent.MessageOneofCase.TextStreamWriterWrite:
+ Instance.TextStreamWriterWriteReceived?.Invoke(r.TextStreamWriterWrite!);
+ break;
+ case FfiEvent.MessageOneofCase.TextStreamWriterClose:
+ Instance.TextStreamWriterCloseReceived?.Invoke(r.TextStreamWriterClose!);
+ break;
+ case FfiEvent.MessageOneofCase.SendText:
+ Instance.SendTextReceived?.Invoke(r.SendText!);
+ break;
case FfiEvent.MessageOneofCase.Panic:
break;
default:
diff --git a/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs b/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs
index cd58ce8c..8f2490e0 100644
--- a/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs
+++ b/Runtime/Scripts/Internal/FFIClients/FFIEvents.cs
@@ -21,7 +21,29 @@ namespace LiveKit.Internal
internal delegate void DisconnectReceivedDelegate(DisconnectCallback e);
internal delegate void GetSessionStatsDelegate(GetStatsCallback e);
-
+
+ internal delegate void ByteStreamReaderReadAllReceivedDelegate(ByteStreamReaderReadAllCallback e);
+
+ internal delegate void ByteStreamReaderWriteToFileReceivedDelegate(ByteStreamReaderWriteToFileCallback e);
+
+ internal delegate void ByteStreamOpenReceivedDelegate(ByteStreamOpenCallback e);
+
+ internal delegate void ByteStreamWriterWriteReceivedDelegate(ByteStreamWriterWriteCallback e);
+
+ internal delegate void ByteStreamWriterCloseReceivedDelegate(ByteStreamWriterCloseCallback e);
+
+ internal delegate void SendFileReceivedDelegate(StreamSendFileCallback e);
+
+ internal delegate void TextStreamReaderReadAllReceivedDelegate(TextStreamReaderReadAllCallback e);
+
+ internal delegate void TextStreamOpenReceivedDelegate(TextStreamOpenCallback e);
+
+ internal delegate void TextStreamWriterWriteReceivedDelegate(TextStreamWriterWriteCallback e);
+
+ internal delegate void TextStreamWriterCloseReceivedDelegate(TextStreamWriterCloseCallback e);
+
+ internal delegate void SendTextReceivedDelegate(StreamSendTextCallback e);
+
// Events
internal delegate void RoomEventReceivedDelegate(RoomEvent e);
@@ -38,4 +60,8 @@ namespace LiveKit.Internal
internal delegate void PerformRpcReceivedDelegate(PerformRpcCallback e);
+
+ internal delegate void ByteStreamReaderEventReceivedDelegate(ByteStreamReaderEvent e);
+
+ internal delegate void TextStreamReaderEventReceivedDelegate(TextStreamReaderEvent e);
}
\ No newline at end of file
diff --git a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs
index 03eb7958..e6a4716b 100644
--- a/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs
+++ b/Runtime/Scripts/Internal/FFIClients/FfiRequestExtensions.cs
@@ -100,6 +100,46 @@ public static void Inject(this FfiRequest ffiRequest, T request)
case RpcMethodInvocationResponseRequest rpcMethodInvocationResponseRequest:
ffiRequest.RpcMethodInvocationResponse = rpcMethodInvocationResponseRequest;
break;
+ // Data stream
+ case TextStreamReaderReadIncrementalRequest textStreamReaderReadIncrementalRequest:
+ ffiRequest.TextReadIncremental = textStreamReaderReadIncrementalRequest;
+ break;
+ case TextStreamReaderReadAllRequest textStreamReaderReadAllRequest:
+ ffiRequest.TextReadAll = textStreamReaderReadAllRequest;
+ break;
+ case ByteStreamReaderReadIncrementalRequest byteStreamReaderReadIncrementalRequest:
+ ffiRequest.ByteReadIncremental = byteStreamReaderReadIncrementalRequest;
+ break;
+ case ByteStreamReaderReadAllRequest byteStreamReaderReadAllRequest:
+ ffiRequest.ByteReadAll = byteStreamReaderReadAllRequest;
+ break;
+ case ByteStreamReaderWriteToFileRequest byteStreamReaderWriteToFileRequest:
+ ffiRequest.ByteWriteToFile = byteStreamReaderWriteToFileRequest;
+ break;
+ case StreamSendFileRequest streamSendFileRequest:
+ ffiRequest.SendFile = streamSendFileRequest;
+ break;
+ case StreamSendTextRequest streamSendTextRequest:
+ ffiRequest.SendText = streamSendTextRequest;
+ break;
+ case ByteStreamOpenRequest byteStreamOpenRequest:
+ ffiRequest.ByteStreamOpen = byteStreamOpenRequest;
+ break;
+ case ByteStreamWriterWriteRequest byteStreamWriterWriteRequest:
+ ffiRequest.ByteStreamWrite = byteStreamWriterWriteRequest;
+ break;
+ case ByteStreamWriterCloseRequest byteStreamWriterCloseRequest:
+ ffiRequest.ByteStreamClose = byteStreamWriterCloseRequest;
+ break;
+ case TextStreamOpenRequest textStreamOpenRequest:
+ ffiRequest.TextStreamOpen = textStreamOpenRequest;
+ break;
+ case TextStreamWriterWriteRequest textStreamWriterWriteRequest:
+ ffiRequest.TextStreamWrite = textStreamWriterWriteRequest;
+ break;
+ case TextStreamWriterCloseRequest textStreamWriterCloseRequest:
+ ffiRequest.TextStreamClose = textStreamWriterCloseRequest;
+ break;
default:
throw new Exception($"Unknown request type: {request?.GetType().FullName ?? "null"}");
}
diff --git a/Runtime/Scripts/Internal/YieldInstruction.cs b/Runtime/Scripts/Internal/YieldInstruction.cs
index 2afa8551..97cbb807 100644
--- a/Runtime/Scripts/Internal/YieldInstruction.cs
+++ b/Runtime/Scripts/Internal/YieldInstruction.cs
@@ -1,3 +1,4 @@
+using System;
using UnityEngine;
namespace LiveKit
@@ -9,4 +10,31 @@ public class YieldInstruction : CustomYieldInstruction
public override bool keepWaiting => !IsDone;
}
+
+ public class StreamYieldInstruction : CustomYieldInstruction
+ {
+ ///
+ /// True if the stream has reached the end.
+ ///
+ public bool IsEos { protected set; get; }
+
+ internal bool IsCurrentReadDone { get; set; }
+
+ public override bool keepWaiting => !IsCurrentReadDone && !IsEos;
+
+ ///
+ /// Resets the yield instruction for the next read.
+ ///
+ ///
+ /// Calling this method after is true will throw an exception.
+ ///
+ public override void Reset()
+ {
+ if (IsEos)
+ {
+ throw new InvalidOperationException("Cannot reset after end of stream");
+ }
+ IsCurrentReadDone = false;
+ }
+ }
}
diff --git a/Runtime/Scripts/Participant.cs b/Runtime/Scripts/Participant.cs
index dd0e8ba3..bc610cd4 100644
--- a/Runtime/Scripts/Participant.cs
+++ b/Runtime/Scripts/Participant.cs
@@ -6,6 +6,7 @@
using LiveKit.Internal;
using LiveKit.Proto;
using LiveKit.Internal.FFIClients.Requests;
+using System.Diagnostics;
namespace LiveKit
{
@@ -175,8 +176,8 @@ public PerformRpcInstruction PerformRpc(PerformRpcParams rpcParams)
/// Registers a new RPC method handler.
///
/// The name of the RPC method to register
- /// The async callback that handles incoming RPC requests. It receives an RpcInvocationData object
- /// containing the caller's identity, payload (up to 15KiB UTF-8), and response timeout. Must return a string response or throw
+ /// The async callback that handles incoming RPC requests. It receives an RpcInvocationData object
+ /// containing the caller's identity, payload (up to 15KiB UTF-8), and response timeout. Must return a string response or throw
/// an RpcError. Any other exceptions will be converted to a generic APPLICATION_ERROR (1500).
public void RegisterRpcMethod(string method, RpcHandler handler)
{
@@ -293,6 +294,188 @@ private unsafe void PublishData(byte* data, int len, IReadOnlyCollection
Utils.Debug("Sending message: " + topic);
var response = request.Send();
}
+
+ ///
+ /// Send text to participants in the room.
+ ///
+ /// The text content to send.
+ /// Configuration options for the text stream, including topic and
+ /// destination participants.
+ ///
+ /// A that completes when the text is sent or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ ///
+ public SendTextInstruction SendText(string text, StreamTextOptions options)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var sendTextReq = request.request;
+ sendTextReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
+ sendTextReq.Text = text;
+ sendTextReq.Options = options.ToProto();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new SendTextInstruction(res.SendText.AsyncId);
+ }
+
+ ///
+ /// Send text to participants in the room.
+ ///
+ /// The text content to send.
+ /// Topic identifier used to route the stream to appropriate handlers.
+ ///
+ /// Use the overload to set custom stream options.
+ ///
+ ///
+ /// A that completes when the text is sent or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ ///
+ public SendTextInstruction SendText(string text, string topic)
+ {
+ var options = new StreamTextOptions();
+ options.Topic = topic;
+ return SendText(text, options);
+ }
+
+ ///
+ /// Send a file on disk to participants in the room.
+ ///
+ /// Path to the file to be sent.
+ /// Configuration options for the byte stream, including topic and
+ /// destination participants.
+ ///
+ /// A that completes when the file is sent or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ ///
+ public SendFileInstruction SendFile(string path, StreamByteOptions options)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var sendFileReq = request.request;
+ sendFileReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
+ sendFileReq.FilePath = path;
+ sendFileReq.Options = options.ToProto();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new SendFileInstruction(res.SendFile.AsyncId);
+ }
+
+ ///
+ /// Send a file on disk to participants in the room.
+ ///
+ /// Path to the file to be sent.
+ /// Topic identifier used to route the stream to appropriate handlers.
+ ///
+ /// Use the overload to set custom stream options.
+ ///
+ ///
+ /// A that completes when the file is sent or errors.
+ /// Check and access
+ /// properties to handle the result.
+ ///
+ ///
+ public SendFileInstruction SendFile(string path, string topic)
+ {
+ var options = new StreamByteOptions();
+ options.Topic = topic;
+ return SendFile(path, options);
+ }
+
+ ///
+ /// Stream text incrementally to participants in the room.
+ ///
+ ///
+ /// This method allows sending text data in chunks as it becomes available.
+ /// Unlike , which sends the entire text at once, this method allows
+ /// using a writer to send text incrementally.
+ ///
+ /// Configuration options for the text stream, including topic and
+ /// destination participants.
+ ///
+ /// A that completes once the stream is open or errors.
+ /// Check and access
+ /// to access the writer for the opened stream.
+ ///
+ public StreamTextInstruction StreamText(StreamTextOptions options)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var streamTextReq = request.request;
+ streamTextReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
+ streamTextReq.Options = options.ToProto();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new StreamTextInstruction(res.TextStreamOpen.AsyncId);
+ }
+
+ ///
+ /// Stream bytes incrementally to participants in the room.
+ ///
+ ///
+ /// This method allows sending byte data in chunks as it becomes available.
+ /// Unlike , which sends the entire file at once, this method allows
+ /// using a writer to send byte data incrementally.
+ ///
+ /// Configuration options for the byte stream, including topic and
+ /// destination participants.
+ ///
+ /// A that completes once the stream is open or errors.
+ /// Check and access
+ /// to access the writer for the opened stream.
+ ///
+ public StreamBytesInstruction StreamBytes(StreamByteOptions options)
+ {
+ using var request = FFIBridge.Instance.NewRequest();
+ var streamBytesReq = request.request;
+ streamBytesReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
+ streamBytesReq.Options = options.ToProto();
+
+ using var response = request.Send();
+ FfiResponse res = response;
+ return new StreamBytesInstruction(res.ByteStreamOpen.AsyncId);
+ }
+
+ ///
+ /// Stream bytes to participants in the room.
+ ///
+ ///
+ /// Use the overload to set custom stream options.
+ ///
+ /// Topic identifier used to route the stream to appropriate handlers.
+ ///
+ /// A that completes once the stream is open or errors.
+ /// Check and access
+ /// to access the writer for the opened stream.
+ ///
+ public StreamBytesInstruction StreamBytes(string topic)
+ {
+ var options = new StreamByteOptions { Topic = topic };
+ return StreamBytes(options);
+ }
+
+ ///
+ /// Stream text to participants in the room.
+ ///
+ ///
+ /// Use the overload to set custom stream options.
+ ///
+ /// Topic identifier used to route the stream to appropriate handlers.
+ ///
+ /// A that completes once the stream is open or errors.
+ /// Check and access
+ /// to access the writer for the opened stream.
+ ///
+ public StreamTextInstruction StreamText(string topic)
+ {
+ var options = new StreamTextOptions { Topic = topic };
+ return StreamText(options);
+ }
}
public sealed class RemoteParticipant : Participant
@@ -411,4 +594,196 @@ public string Payload
///
public RpcError Error { get; private set; }
}
+
+ ///
+ /// YieldInstruction for send text. Returned by .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class SendTextInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private TextStreamInfo _info;
+
+ internal SendTextInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.SendTextReceived += OnSendText;
+ }
+
+ internal void OnSendText(StreamSendTextCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case StreamSendTextCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case StreamSendTextCallback.ResultOneofCase.Info:
+ _info = new TextStreamInfo(e.Info);
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.SendTextReceived -= OnSendText;
+ }
+
+ public TextStreamInfo Info
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _info;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for send file. Returned by .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class SendFileInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private ByteStreamInfo _info;
+
+ internal SendFileInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.SendFileReceived += OnSendFile;
+ }
+
+ internal void OnSendFile(StreamSendFileCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case StreamSendFileCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case StreamSendFileCallback.ResultOneofCase.Info:
+ _info = new ByteStreamInfo(e.Info);
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.SendFileReceived -= OnSendFile;
+ }
+
+ public ByteStreamInfo Info
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _info;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for stream text. Returned by .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class StreamTextInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private TextStreamWriter _writer;
+
+ internal StreamTextInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.TextStreamOpenReceived += OnStreamOpen;
+ }
+
+ internal void OnStreamOpen(TextStreamOpenCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case TextStreamOpenCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case TextStreamOpenCallback.ResultOneofCase.Writer:
+ _writer = new TextStreamWriter(e.Writer);
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.TextStreamOpenReceived -= OnStreamOpen;
+ }
+
+ public TextStreamWriter Writer
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _writer;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
+
+ ///
+ /// YieldInstruction for stream bytes. Returned by .
+ ///
+ ///
+ /// Access after checking
+ ///
+ public sealed class StreamBytesInstruction : YieldInstruction
+ {
+ private ulong _asyncId;
+ private ByteStreamWriter _writer;
+
+ internal StreamBytesInstruction(ulong asyncId)
+ {
+ _asyncId = asyncId;
+ FfiClient.Instance.ByteStreamOpenReceived += OnStreamOpen;
+ }
+
+ internal void OnStreamOpen(ByteStreamOpenCallback e)
+ {
+ if (e.AsyncId != _asyncId)
+ return;
+
+ switch (e.ResultCase)
+ {
+ case ByteStreamOpenCallback.ResultOneofCase.Error:
+ Error = new StreamError(e.Error);
+ IsError = true;
+ break;
+ case ByteStreamOpenCallback.ResultOneofCase.Writer:
+ _writer = new ByteStreamWriter(e.Writer);
+ break;
+ }
+ IsDone = true;
+ FfiClient.Instance.ByteStreamOpenReceived -= OnStreamOpen;
+ }
+
+ public ByteStreamWriter Writer
+ {
+ get
+ {
+ if (IsError) throw Error;
+ return _writer;
+ }
+ }
+
+ public StreamError Error { get; private set; }
+ }
}
diff --git a/Runtime/Scripts/Proto/AudioFrame.cs b/Runtime/Scripts/Proto/AudioFrame.cs
index ad11d265..b6455ed1 100644
--- a/Runtime/Scripts/Proto/AudioFrame.cs
+++ b/Runtime/Scripts/Proto/AudioFrame.cs
@@ -25,98 +25,120 @@ static AudioFrameReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChFhdWRpb19mcmFtZS5wcm90bxINbGl2ZWtpdC5wcm90bxoMaGFuZGxlLnBy",
- "b3RvGgt0cmFjay5wcm90byKGAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK",
+ "b3RvGgt0cmFjay5wcm90byLEAQoVTmV3QXVkaW9TdHJlYW1SZXF1ZXN0EhQK",
"DHRyYWNrX2hhbmRsZRgBIAIoBBIsCgR0eXBlGAIgAigOMh4ubGl2ZWtpdC5w",
"cm90by5BdWRpb1N0cmVhbVR5cGUSEwoLc2FtcGxlX3JhdGUYAyABKA0SFAoM",
- "bnVtX2NoYW5uZWxzGAQgASgNIkkKFk5ld0F1ZGlvU3RyZWFtUmVzcG9uc2US",
- "LwoGc3RyZWFtGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1ZGlvU3Ry",
- "ZWFtIsoBCiFBdWRpb1N0cmVhbUZyb21QYXJ0aWNpcGFudFJlcXVlc3QSGgoS",
- "cGFydGljaXBhbnRfaGFuZGxlGAEgAigEEiwKBHR5cGUYAiACKA4yHi5saXZl",
- "a2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZRIwCgx0cmFja19zb3VyY2UYAyAB",
- "KA4yGi5saXZla2l0LnByb3RvLlRyYWNrU291cmNlEhMKC3NhbXBsZV9yYXRl",
- "GAUgASgNEhQKDG51bV9jaGFubmVscxgGIAEoDSJVCiJBdWRpb1N0cmVhbUZy",
- "b21QYXJ0aWNpcGFudFJlc3BvbnNlEi8KBnN0cmVhbRgBIAIoCzIfLmxpdmVr",
- "aXQucHJvdG8uT3duZWRBdWRpb1N0cmVhbSK7AQoVTmV3QXVkaW9Tb3VyY2VS",
- "ZXF1ZXN0EiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU291",
- "cmNlVHlwZRIyCgdvcHRpb25zGAIgASgLMiEubGl2ZWtpdC5wcm90by5BdWRp",
- "b1NvdXJjZU9wdGlvbnMSEwoLc2FtcGxlX3JhdGUYAyACKA0SFAoMbnVtX2No",
- "YW5uZWxzGAQgAigNEhUKDXF1ZXVlX3NpemVfbXMYBSABKA0iSQoWTmV3QXVk",
- "aW9Tb3VyY2VSZXNwb25zZRIvCgZzb3VyY2UYASACKAsyHy5saXZla2l0LnBy",
- "b3RvLk93bmVkQXVkaW9Tb3VyY2UiZgoYQ2FwdHVyZUF1ZGlvRnJhbWVSZXF1",
- "ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASACKAQSMwoGYnVmZmVyGAIgAigLMiMu",
- "bGl2ZWtpdC5wcm90by5BdWRpb0ZyYW1lQnVmZmVySW5mbyItChlDYXB0dXJl",
- "QXVkaW9GcmFtZVJlc3BvbnNlEhAKCGFzeW5jX2lkGAEgAigEIjwKGUNhcHR1",
- "cmVBdWRpb0ZyYW1lQ2FsbGJhY2sSEAoIYXN5bmNfaWQYASACKAQSDQoFZXJy",
- "b3IYAiABKAkiMAoXQ2xlYXJBdWRpb0J1ZmZlclJlcXVlc3QSFQoNc291cmNl",
- "X2hhbmRsZRgBIAIoBCIaChhDbGVhckF1ZGlvQnVmZmVyUmVzcG9uc2UiGgoY",
- "TmV3QXVkaW9SZXNhbXBsZXJSZXF1ZXN0IlIKGU5ld0F1ZGlvUmVzYW1wbGVy",
- "UmVzcG9uc2USNQoJcmVzYW1wbGVyGAEgAigLMiIubGl2ZWtpdC5wcm90by5P",
- "d25lZEF1ZGlvUmVzYW1wbGVyIpMBChdSZW1peEFuZFJlc2FtcGxlUmVxdWVz",
- "dBIYChByZXNhbXBsZXJfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIj",
- "LmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8SFAoMbnVtX2No",
- "YW5uZWxzGAMgAigNEhMKC3NhbXBsZV9yYXRlGAQgAigNIlAKGFJlbWl4QW5k",
- "UmVzYW1wbGVSZXNwb25zZRI0CgZidWZmZXIYASACKAsyJC5saXZla2l0LnBy",
- "b3RvLk93bmVkQXVkaW9GcmFtZUJ1ZmZlciKcAgoWTmV3U294UmVzYW1wbGVy",
- "UmVxdWVzdBISCgppbnB1dF9yYXRlGAEgAigBEhMKC291dHB1dF9yYXRlGAIg",
- "AigBEhQKDG51bV9jaGFubmVscxgDIAIoDRI8Cg9pbnB1dF9kYXRhX3R5cGUY",
- "BCACKA4yIy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEj0K",
- "EG91dHB1dF9kYXRhX3R5cGUYBSACKA4yIy5saXZla2l0LnByb3RvLlNveFJl",
- "c2FtcGxlckRhdGFUeXBlEjcKDnF1YWxpdHlfcmVjaXBlGAYgAigOMh8ubGl2",
- "ZWtpdC5wcm90by5Tb3hRdWFsaXR5UmVjaXBlEg0KBWZsYWdzGAcgASgNImwK",
- "F05ld1NveFJlc2FtcGxlclJlc3BvbnNlEjUKCXJlc2FtcGxlchgBIAEoCzIg",
- "LmxpdmVraXQucHJvdG8uT3duZWRTb3hSZXNhbXBsZXJIABIPCgVlcnJvchgC",
- "IAEoCUgAQgkKB21lc3NhZ2UiUwoXUHVzaFNveFJlc2FtcGxlclJlcXVlc3QS",
- "GAoQcmVzYW1wbGVyX2hhbmRsZRgBIAIoBBIQCghkYXRhX3B0chgCIAIoBBIM",
- "CgRzaXplGAMgAigNIksKGFB1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpv",
- "dXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAki",
- "NAoYRmx1c2hTb3hSZXNhbXBsZXJSZXF1ZXN0EhgKEHJlc2FtcGxlcl9oYW5k",
- "bGUYASACKAQiTAoZRmx1c2hTb3hSZXNhbXBsZXJSZXNwb25zZRISCgpvdXRw",
- "dXRfcHRyGAEgAigEEgwKBHNpemUYAiACKA0SDQoFZXJyb3IYAyABKAkicAoU",
- "QXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoIZGF0YV9wdHIYASACKAQSFAoMbnVt",
- "X2NoYW5uZWxzGAIgAigNEhMKC3NhbXBsZV9yYXRlGAMgAigNEhsKE3NhbXBs",
- "ZXNfcGVyX2NoYW5uZWwYBCACKA0ieQoVT3duZWRBdWRpb0ZyYW1lQnVmZmVy",
- "Ei0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5k",
- "bGUSMQoEaW5mbxgCIAIoCzIjLmxpdmVraXQucHJvdG8uQXVkaW9GcmFtZUJ1",
- "ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1JbmZvEiwKBHR5cGUYASACKA4yHi5s",
- "aXZla2l0LnByb3RvLkF1ZGlvU3RyZWFtVHlwZSJvChBPd25lZEF1ZGlvU3Ry",
- "ZWFtEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRI",
- "YW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJl",
- "YW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2ZW50EhUKDXN0cmVhbV9oYW5kbGUY",
- "ASACKAQSOwoOZnJhbWVfcmVjZWl2ZWQYAiABKAsyIS5saXZla2l0LnByb3Rv",
- "LkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwKA2VvcxgDIAEoCzIdLmxpdmVraXQu",
- "cHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJCgdtZXNzYWdlIkkKEkF1ZGlvRnJh",
- "bWVSZWNlaXZlZBIzCgVmcmFtZRgBIAIoCzIkLmxpdmVraXQucHJvdG8uT3du",
- "ZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1ZGlvU3RyZWFtRU9TImUKEkF1ZGlv",
- "U291cmNlT3B0aW9ucxIZChFlY2hvX2NhbmNlbGxhdGlvbhgBIAIoCBIZChFu",
- "b2lzZV9zdXBwcmVzc2lvbhgCIAIoCBIZChFhdXRvX2dhaW5fY29udHJvbBgD",
- "IAIoCCI/Cg9BdWRpb1NvdXJjZUluZm8SLAoEdHlwZRgCIAIoDjIeLmxpdmVr",
- "aXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBlIm8KEE93bmVkQXVkaW9Tb3VyY2US",
- "LQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRs",
- "ZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZUlu",
- "Zm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZvInUKE093bmVkQXVkaW9SZXNhbXBs",
- "ZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhh",
- "bmRsZRIvCgRpbmZvGAIgAigLMiEubGl2ZWtpdC5wcm90by5BdWRpb1Jlc2Ft",
- "cGxlckluZm8iEgoQU294UmVzYW1wbGVySW5mbyJxChFPd25lZFNveFJlc2Ft",
- "cGxlchItCgZoYW5kbGUYASACKAsyHS5saXZla2l0LnByb3RvLkZmaU93bmVk",
- "SGFuZGxlEi0KBGluZm8YAiACKAsyHy5saXZla2l0LnByb3RvLlNveFJlc2Ft",
- "cGxlckluZm8qSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRB",
- "VFlQRV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBT",
- "b3hRdWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNP",
- "WFJfUVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoR",
- "U09YUl9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQ",
- "BCqXAQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoT",
- "U09YUl9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAIS",
- "GAoUU09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVD",
- "SVNJT04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FV",
- "RElPX1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioK",
- "D0F1ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoC",
- "DUxpdmVLaXQuUHJvdG8="));
+ "bnVtX2NoYW5uZWxzGAQgASgNEh4KFmF1ZGlvX2ZpbHRlcl9tb2R1bGVfaWQY",
+ "BSABKAkSHAoUYXVkaW9fZmlsdGVyX29wdGlvbnMYBiABKAkiSQoWTmV3QXVk",
+ "aW9TdHJlYW1SZXNwb25zZRIvCgZzdHJlYW0YASACKAsyHy5saXZla2l0LnBy",
+ "b3RvLk93bmVkQXVkaW9TdHJlYW0iiAIKIUF1ZGlvU3RyZWFtRnJvbVBhcnRp",
+ "Y2lwYW50UmVxdWVzdBIaChJwYXJ0aWNpcGFudF9oYW5kbGUYASACKAQSLAoE",
+ "dHlwZRgCIAIoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1UeXBlEjAK",
+ "DHRyYWNrX3NvdXJjZRgDIAEoDjIaLmxpdmVraXQucHJvdG8uVHJhY2tTb3Vy",
+ "Y2USEwoLc2FtcGxlX3JhdGUYBSABKA0SFAoMbnVtX2NoYW5uZWxzGAYgASgN",
+ "Eh4KFmF1ZGlvX2ZpbHRlcl9tb2R1bGVfaWQYByABKAkSHAoUYXVkaW9fZmls",
+ "dGVyX29wdGlvbnMYCCABKAkiVQoiQXVkaW9TdHJlYW1Gcm9tUGFydGljaXBh",
+ "bnRSZXNwb25zZRIvCgZzdHJlYW0YASACKAsyHy5saXZla2l0LnByb3RvLk93",
+ "bmVkQXVkaW9TdHJlYW0iuwEKFU5ld0F1ZGlvU291cmNlUmVxdWVzdBIsCgR0",
+ "eXBlGAEgAigOMh4ubGl2ZWtpdC5wcm90by5BdWRpb1NvdXJjZVR5cGUSMgoH",
+ "b3B0aW9ucxgCIAEoCzIhLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VPcHRp",
+ "b25zEhMKC3NhbXBsZV9yYXRlGAMgAigNEhQKDG51bV9jaGFubmVscxgEIAIo",
+ "DRIVCg1xdWV1ZV9zaXplX21zGAUgASgNIkkKFk5ld0F1ZGlvU291cmNlUmVz",
+ "cG9uc2USLwoGc291cmNlGAEgAigLMh8ubGl2ZWtpdC5wcm90by5Pd25lZEF1",
+ "ZGlvU291cmNlImYKGENhcHR1cmVBdWRpb0ZyYW1lUmVxdWVzdBIVCg1zb3Vy",
+ "Y2VfaGFuZGxlGAEgAigEEjMKBmJ1ZmZlchgCIAIoCzIjLmxpdmVraXQucHJv",
+ "dG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iLQoZQ2FwdHVyZUF1ZGlvRnJhbWVS",
+ "ZXNwb25zZRIQCghhc3luY19pZBgBIAIoBCI8ChlDYXB0dXJlQXVkaW9GcmFt",
+ "ZUNhbGxiYWNrEhAKCGFzeW5jX2lkGAEgAigEEg0KBWVycm9yGAIgASgJIjAK",
+ "F0NsZWFyQXVkaW9CdWZmZXJSZXF1ZXN0EhUKDXNvdXJjZV9oYW5kbGUYASAC",
+ "KAQiGgoYQ2xlYXJBdWRpb0J1ZmZlclJlc3BvbnNlIhoKGE5ld0F1ZGlvUmVz",
+ "YW1wbGVyUmVxdWVzdCJSChlOZXdBdWRpb1Jlc2FtcGxlclJlc3BvbnNlEjUK",
+ "CXJlc2FtcGxlchgBIAIoCzIiLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb1Jl",
+ "c2FtcGxlciKTAQoXUmVtaXhBbmRSZXNhbXBsZVJlcXVlc3QSGAoQcmVzYW1w",
+ "bGVyX2hhbmRsZRgBIAIoBBIzCgZidWZmZXIYAiACKAsyIy5saXZla2l0LnBy",
+ "b3RvLkF1ZGlvRnJhbWVCdWZmZXJJbmZvEhQKDG51bV9jaGFubmVscxgDIAIo",
+ "DRITCgtzYW1wbGVfcmF0ZRgEIAIoDSJQChhSZW1peEFuZFJlc2FtcGxlUmVz",
+ "cG9uc2USNAoGYnVmZmVyGAEgAigLMiQubGl2ZWtpdC5wcm90by5Pd25lZEF1",
+ "ZGlvRnJhbWVCdWZmZXIilQEKDU5ld0FwbVJlcXVlc3QSHgoWZWNob19jYW5j",
+ "ZWxsZXJfZW5hYmxlZBgBIAIoCBIfChdnYWluX2NvbnRyb2xsZXJfZW5hYmxl",
+ "ZBgCIAIoCBIgChhoaWdoX3Bhc3NfZmlsdGVyX2VuYWJsZWQYAyACKAgSIQoZ",
+ "bm9pc2Vfc3VwcHJlc3Npb25fZW5hYmxlZBgEIAIoCCI2Cg5OZXdBcG1SZXNw",
+ "b25zZRIkCgNhcG0YASACKAsyFy5saXZla2l0LnByb3RvLk93bmVkQXBtIngK",
+ "F0FwbVByb2Nlc3NTdHJlYW1SZXF1ZXN0EhIKCmFwbV9oYW5kbGUYASACKAQS",
+ "EAoIZGF0YV9wdHIYAiACKAQSDAoEc2l6ZRgDIAIoDRITCgtzYW1wbGVfcmF0",
+ "ZRgEIAIoDRIUCgxudW1fY2hhbm5lbHMYBSACKA0iKQoYQXBtUHJvY2Vzc1N0",
+ "cmVhbVJlc3BvbnNlEg0KBWVycm9yGAEgASgJIn8KHkFwbVByb2Nlc3NSZXZl",
+ "cnNlU3RyZWFtUmVxdWVzdBISCgphcG1faGFuZGxlGAEgAigEEhAKCGRhdGFf",
+ "cHRyGAIgAigEEgwKBHNpemUYAyACKA0SEwoLc2FtcGxlX3JhdGUYBCACKA0S",
+ "FAoMbnVtX2NoYW5uZWxzGAUgAigNIjAKH0FwbVByb2Nlc3NSZXZlcnNlU3Ry",
+ "ZWFtUmVzcG9uc2USDQoFZXJyb3IYASABKAkiQAoYQXBtU2V0U3RyZWFtRGVs",
+ "YXlSZXF1ZXN0EhIKCmFwbV9oYW5kbGUYASACKAQSEAoIZGVsYXlfbXMYAiAC",
+ "KAUiKgoZQXBtU2V0U3RyZWFtRGVsYXlSZXNwb25zZRINCgVlcnJvchgBIAEo",
+ "CSKcAgoWTmV3U294UmVzYW1wbGVyUmVxdWVzdBISCgppbnB1dF9yYXRlGAEg",
+ "AigBEhMKC291dHB1dF9yYXRlGAIgAigBEhQKDG51bV9jaGFubmVscxgDIAIo",
+ "DRI8Cg9pbnB1dF9kYXRhX3R5cGUYBCACKA4yIy5saXZla2l0LnByb3RvLlNv",
+ "eFJlc2FtcGxlckRhdGFUeXBlEj0KEG91dHB1dF9kYXRhX3R5cGUYBSACKA4y",
+ "Iy5saXZla2l0LnByb3RvLlNveFJlc2FtcGxlckRhdGFUeXBlEjcKDnF1YWxp",
+ "dHlfcmVjaXBlGAYgAigOMh8ubGl2ZWtpdC5wcm90by5Tb3hRdWFsaXR5UmVj",
+ "aXBlEg0KBWZsYWdzGAcgASgNImwKF05ld1NveFJlc2FtcGxlclJlc3BvbnNl",
+ "EjUKCXJlc2FtcGxlchgBIAEoCzIgLmxpdmVraXQucHJvdG8uT3duZWRTb3hS",
+ "ZXNhbXBsZXJIABIPCgVlcnJvchgCIAEoCUgAQgkKB21lc3NhZ2UiUwoXUHVz",
+ "aFNveFJlc2FtcGxlclJlcXVlc3QSGAoQcmVzYW1wbGVyX2hhbmRsZRgBIAIo",
+ "BBIQCghkYXRhX3B0chgCIAIoBBIMCgRzaXplGAMgAigNIksKGFB1c2hTb3hS",
+ "ZXNhbXBsZXJSZXNwb25zZRISCgpvdXRwdXRfcHRyGAEgAigEEgwKBHNpemUY",
+ "AiACKA0SDQoFZXJyb3IYAyABKAkiNAoYRmx1c2hTb3hSZXNhbXBsZXJSZXF1",
+ "ZXN0EhgKEHJlc2FtcGxlcl9oYW5kbGUYASACKAQiTAoZRmx1c2hTb3hSZXNh",
+ "bXBsZXJSZXNwb25zZRISCgpvdXRwdXRfcHRyGAEgAigEEgwKBHNpemUYAiAC",
+ "KA0SDQoFZXJyb3IYAyABKAkicAoUQXVkaW9GcmFtZUJ1ZmZlckluZm8SEAoI",
+ "ZGF0YV9wdHIYASACKAQSFAoMbnVtX2NoYW5uZWxzGAIgAigNEhMKC3NhbXBs",
+ "ZV9yYXRlGAMgAigNEhsKE3NhbXBsZXNfcGVyX2NoYW5uZWwYBCACKA0ieQoV",
+ "T3duZWRBdWRpb0ZyYW1lQnVmZmVyEi0KBmhhbmRsZRgBIAIoCzIdLmxpdmVr",
+ "aXQucHJvdG8uRmZpT3duZWRIYW5kbGUSMQoEaW5mbxgCIAIoCzIjLmxpdmVr",
+ "aXQucHJvdG8uQXVkaW9GcmFtZUJ1ZmZlckluZm8iPwoPQXVkaW9TdHJlYW1J",
+ "bmZvEiwKBHR5cGUYASACKA4yHi5saXZla2l0LnByb3RvLkF1ZGlvU3RyZWFt",
+ "VHlwZSJvChBPd25lZEF1ZGlvU3RyZWFtEi0KBmhhbmRsZRgBIAIoCzIdLmxp",
+ "dmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLAoEaW5mbxgCIAIoCzIeLmxp",
+ "dmVraXQucHJvdG8uQXVkaW9TdHJlYW1JbmZvIp8BChBBdWRpb1N0cmVhbUV2",
+ "ZW50EhUKDXN0cmVhbV9oYW5kbGUYASACKAQSOwoOZnJhbWVfcmVjZWl2ZWQY",
+ "AiABKAsyIS5saXZla2l0LnByb3RvLkF1ZGlvRnJhbWVSZWNlaXZlZEgAEiwK",
+ "A2VvcxgDIAEoCzIdLmxpdmVraXQucHJvdG8uQXVkaW9TdHJlYW1FT1NIAEIJ",
+ "CgdtZXNzYWdlIkkKEkF1ZGlvRnJhbWVSZWNlaXZlZBIzCgVmcmFtZRgBIAIo",
+ "CzIkLmxpdmVraXQucHJvdG8uT3duZWRBdWRpb0ZyYW1lQnVmZmVyIhAKDkF1",
+ "ZGlvU3RyZWFtRU9TImUKEkF1ZGlvU291cmNlT3B0aW9ucxIZChFlY2hvX2Nh",
+ "bmNlbGxhdGlvbhgBIAIoCBIZChFub2lzZV9zdXBwcmVzc2lvbhgCIAIoCBIZ",
+ "ChFhdXRvX2dhaW5fY29udHJvbBgDIAIoCCI/Cg9BdWRpb1NvdXJjZUluZm8S",
+ "LAoEdHlwZRgCIAIoDjIeLmxpdmVraXQucHJvdG8uQXVkaW9Tb3VyY2VUeXBl",
+ "Im8KEE93bmVkQXVkaW9Tb3VyY2USLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtp",
+ "dC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtp",
+ "dC5wcm90by5BdWRpb1NvdXJjZUluZm8iFAoSQXVkaW9SZXNhbXBsZXJJbmZv",
+ "InUKE093bmVkQXVkaW9SZXNhbXBsZXISLQoGaGFuZGxlGAEgAigLMh0ubGl2",
+ "ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIvCgRpbmZvGAIgAigLMiEubGl2",
+ "ZWtpdC5wcm90by5BdWRpb1Jlc2FtcGxlckluZm8iOQoIT3duZWRBcG0SLQoG",
+ "aGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZSIS",
+ "ChBTb3hSZXNhbXBsZXJJbmZvInEKEU93bmVkU294UmVzYW1wbGVyEi0KBmhh",
+ "bmRsZRgBIAIoCzIdLmxpdmVraXQucHJvdG8uRmZpT3duZWRIYW5kbGUSLQoE",
+ "aW5mbxgCIAIoCzIfLmxpdmVraXQucHJvdG8uU294UmVzYW1wbGVySW5mbyJc",
+ "ChxMb2FkQXVkaW9GaWx0ZXJQbHVnaW5SZXF1ZXN0EhMKC3BsdWdpbl9wYXRo",
+ "GAEgAigJEhQKDGRlcGVuZGVuY2llcxgCIAMoCRIRCgltb2R1bGVfaWQYAyAC",
+ "KAkiLgodTG9hZEF1ZGlvRmlsdGVyUGx1Z2luUmVzcG9uc2USDQoFZXJyb3IY",
+ "ASABKAkqSgoUU294UmVzYW1wbGVyRGF0YVR5cGUSGAoUU09YUl9EQVRBVFlQ",
+ "RV9JTlQxNkkQABIYChRTT1hSX0RBVEFUWVBFX0lOVDE2UxABKosBChBTb3hR",
+ "dWFsaXR5UmVjaXBlEhYKElNPWFJfUVVBTElUWV9RVUlDSxAAEhQKEFNPWFJf",
+ "UVVBTElUWV9MT1cQARIXChNTT1hSX1FVQUxJVFlfTUVESVVNEAISFQoRU09Y",
+ "Ul9RVUFMSVRZX0hJR0gQAxIZChVTT1hSX1FVQUxJVFlfVkVSWUhJR0gQBCqX",
+ "AQoLU294RmxhZ0JpdHMSFgoSU09YUl9ST0xMT0ZGX1NNQUxMEAASFwoTU09Y",
+ "Ul9ST0xMT0ZGX01FRElVTRABEhUKEVNPWFJfUk9MTE9GRl9OT05FEAISGAoU",
+ "U09YUl9ISUdIX1BSRUNfQ0xPQ0sQAxIZChVTT1hSX0RPVUJMRV9QUkVDSVNJ",
+ "T04QBBILCgdTT1hSX1ZSEAUqQQoPQXVkaW9TdHJlYW1UeXBlEhcKE0FVRElP",
+ "X1NUUkVBTV9OQVRJVkUQABIVChFBVURJT19TVFJFQU1fSFRNTBABKioKD0F1",
+ "ZGlvU291cmNlVHlwZRIXChNBVURJT19TT1VSQ0VfTkFUSVZFEABCEKoCDUxp",
+ "dmVLaXQuUHJvdG8="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::LiveKit.Proto.HandleReflection.Descriptor, global::LiveKit.Proto.TrackReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::LiveKit.Proto.SoxResamplerDataType), typeof(global::LiveKit.Proto.SoxQualityRecipe), typeof(global::LiveKit.Proto.SoxFlagBits), typeof(global::LiveKit.Proto.AudioStreamType), typeof(global::LiveKit.Proto.AudioSourceType), }, null, new pbr::GeneratedClrTypeInfo[] {
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamRequest), global::LiveKit.Proto.NewAudioStreamRequest.Parser, new[]{ "TrackHandle", "Type", "SampleRate", "NumChannels", "AudioFilterModuleId", "AudioFilterOptions" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioStreamResponse), global::LiveKit.Proto.NewAudioStreamResponse.Parser, new[]{ "Stream" }, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantRequest), global::LiveKit.Proto.AudioStreamFromParticipantRequest.Parser, new[]{ "ParticipantHandle", "Type", "TrackSource", "SampleRate", "NumChannels", "AudioFilterModuleId", "AudioFilterOptions" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioStreamFromParticipantResponse), global::LiveKit.Proto.AudioStreamFromParticipantResponse.Parser, new[]{ "Stream" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceRequest), global::LiveKit.Proto.NewAudioSourceRequest.Parser, new[]{ "Type", "Options", "SampleRate", "NumChannels", "QueueSizeMs" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioSourceResponse), global::LiveKit.Proto.NewAudioSourceResponse.Parser, new[]{ "Source" }, null, null, null, null),
@@ -129,6 +151,14 @@ static AudioFrameReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewAudioResamplerResponse), global::LiveKit.Proto.NewAudioResamplerResponse.Parser, new[]{ "Resampler" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleRequest), global::LiveKit.Proto.RemixAndResampleRequest.Parser, new[]{ "ResamplerHandle", "Buffer", "NumChannels", "SampleRate" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.RemixAndResampleResponse), global::LiveKit.Proto.RemixAndResampleResponse.Parser, new[]{ "Buffer" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewApmRequest), global::LiveKit.Proto.NewApmRequest.Parser, new[]{ "EchoCancellerEnabled", "GainControllerEnabled", "HighPassFilterEnabled", "NoiseSuppressionEnabled" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewApmResponse), global::LiveKit.Proto.NewApmResponse.Parser, new[]{ "Apm" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessStreamRequest), global::LiveKit.Proto.ApmProcessStreamRequest.Parser, new[]{ "ApmHandle", "DataPtr", "Size", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessStreamResponse), global::LiveKit.Proto.ApmProcessStreamResponse.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessReverseStreamRequest), global::LiveKit.Proto.ApmProcessReverseStreamRequest.Parser, new[]{ "ApmHandle", "DataPtr", "Size", "SampleRate", "NumChannels" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmProcessReverseStreamResponse), global::LiveKit.Proto.ApmProcessReverseStreamResponse.Parser, new[]{ "Error" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmSetStreamDelayRequest), global::LiveKit.Proto.ApmSetStreamDelayRequest.Parser, new[]{ "ApmHandle", "DelayMs" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.ApmSetStreamDelayResponse), global::LiveKit.Proto.ApmSetStreamDelayResponse.Parser, new[]{ "Error" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewSoxResamplerRequest), global::LiveKit.Proto.NewSoxResamplerRequest.Parser, new[]{ "InputRate", "OutputRate", "NumChannels", "InputDataType", "OutputDataType", "QualityRecipe", "Flags" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.NewSoxResamplerResponse), global::LiveKit.Proto.NewSoxResamplerResponse.Parser, new[]{ "Resampler", "Error" }, new[]{ "Message" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.PushSoxResamplerRequest), global::LiveKit.Proto.PushSoxResamplerRequest.Parser, new[]{ "ResamplerHandle", "DataPtr", "Size" }, null, null, null, null),
@@ -147,8 +177,11 @@ static AudioFrameReflection() {
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioSource), global::LiveKit.Proto.OwnedAudioSource.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.AudioResamplerInfo), global::LiveKit.Proto.AudioResamplerInfo.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedAudioResampler), global::LiveKit.Proto.OwnedAudioResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedApm), global::LiveKit.Proto.OwnedApm.Parser, new[]{ "Handle" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.SoxResamplerInfo), global::LiveKit.Proto.SoxResamplerInfo.Parser, null, null, null, null, null),
- new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedSoxResampler), global::LiveKit.Proto.OwnedSoxResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null)
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.OwnedSoxResampler), global::LiveKit.Proto.OwnedSoxResampler.Parser, new[]{ "Handle", "Info" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LoadAudioFilterPluginRequest), global::LiveKit.Proto.LoadAudioFilterPluginRequest.Parser, new[]{ "PluginPath", "Dependencies", "ModuleId" }, null, null, null, null),
+ new pbr::GeneratedClrTypeInfo(typeof(global::LiveKit.Proto.LoadAudioFilterPluginResponse), global::LiveKit.Proto.LoadAudioFilterPluginResponse.Parser, new[]{ "Error" }, null, null, null, null)
}));
}
#endregion
@@ -255,6 +288,8 @@ public NewAudioStreamRequest(NewAudioStreamRequest other) : this() {
type_ = other.type_;
sampleRate_ = other.sampleRate_;
numChannels_ = other.numChannels_;
+ audioFilterModuleId_ = other.audioFilterModuleId_;
+ audioFilterOptions_ = other.audioFilterOptions_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -372,6 +407,61 @@ public void ClearNumChannels() {
_hasBits0 &= ~8;
}
+ /// Field number for the "audio_filter_module_id" field.
+ public const int AudioFilterModuleIdFieldNumber = 5;
+ private readonly static string AudioFilterModuleIdDefaultValue = "";
+
+ private string audioFilterModuleId_;
+ ///
+ /// Unique identifier passed in LoadAudioFilterPluginRequest
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterModuleId {
+ get { return audioFilterModuleId_ ?? AudioFilterModuleIdDefaultValue; }
+ set {
+ audioFilterModuleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterModuleId {
+ get { return audioFilterModuleId_ != null; }
+ }
+ /// Clears the value of the "audio_filter_module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterModuleId() {
+ audioFilterModuleId_ = null;
+ }
+
+ /// Field number for the "audio_filter_options" field.
+ public const int AudioFilterOptionsFieldNumber = 6;
+ private readonly static string AudioFilterOptionsDefaultValue = "";
+
+ private string audioFilterOptions_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterOptions {
+ get { return audioFilterOptions_ ?? AudioFilterOptionsDefaultValue; }
+ set {
+ audioFilterOptions_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_options" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterOptions {
+ get { return audioFilterOptions_ != null; }
+ }
+ /// Clears the value of the "audio_filter_options" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterOptions() {
+ audioFilterOptions_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -391,6 +481,8 @@ public bool Equals(NewAudioStreamRequest other) {
if (Type != other.Type) return false;
if (SampleRate != other.SampleRate) return false;
if (NumChannels != other.NumChannels) return false;
+ if (AudioFilterModuleId != other.AudioFilterModuleId) return false;
+ if (AudioFilterOptions != other.AudioFilterOptions) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -402,6 +494,8 @@ public override int GetHashCode() {
if (HasType) hash ^= Type.GetHashCode();
if (HasSampleRate) hash ^= SampleRate.GetHashCode();
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasAudioFilterModuleId) hash ^= AudioFilterModuleId.GetHashCode();
+ if (HasAudioFilterOptions) hash ^= AudioFilterOptions.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -436,6 +530,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(32);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(42);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(50);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -462,6 +564,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(32);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(42);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(50);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -484,6 +594,12 @@ public int CalculateSize() {
if (HasNumChannels) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterOptions);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -508,6 +624,12 @@ public void MergeFrom(NewAudioStreamRequest other) {
if (other.HasNumChannels) {
NumChannels = other.NumChannels;
}
+ if (other.HasAudioFilterModuleId) {
+ AudioFilterModuleId = other.AudioFilterModuleId;
+ }
+ if (other.HasAudioFilterOptions) {
+ AudioFilterOptions = other.AudioFilterOptions;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -543,6 +665,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 42: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 50: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -578,6 +708,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 42: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 50: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
}
@@ -834,6 +972,8 @@ public AudioStreamFromParticipantRequest(AudioStreamFromParticipantRequest other
trackSource_ = other.trackSource_;
sampleRate_ = other.sampleRate_;
numChannels_ = other.numChannels_;
+ audioFilterModuleId_ = other.audioFilterModuleId_;
+ audioFilterOptions_ = other.audioFilterOptions_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
@@ -978,6 +1118,58 @@ public void ClearNumChannels() {
_hasBits0 &= ~16;
}
+ /// Field number for the "audio_filter_module_id" field.
+ public const int AudioFilterModuleIdFieldNumber = 7;
+ private readonly static string AudioFilterModuleIdDefaultValue = "";
+
+ private string audioFilterModuleId_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterModuleId {
+ get { return audioFilterModuleId_ ?? AudioFilterModuleIdDefaultValue; }
+ set {
+ audioFilterModuleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterModuleId {
+ get { return audioFilterModuleId_ != null; }
+ }
+ /// Clears the value of the "audio_filter_module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterModuleId() {
+ audioFilterModuleId_ = null;
+ }
+
+ /// Field number for the "audio_filter_options" field.
+ public const int AudioFilterOptionsFieldNumber = 8;
+ private readonly static string AudioFilterOptionsDefaultValue = "";
+
+ private string audioFilterOptions_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string AudioFilterOptions {
+ get { return audioFilterOptions_ ?? AudioFilterOptionsDefaultValue; }
+ set {
+ audioFilterOptions_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "audio_filter_options" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasAudioFilterOptions {
+ get { return audioFilterOptions_ != null; }
+ }
+ /// Clears the value of the "audio_filter_options" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearAudioFilterOptions() {
+ audioFilterOptions_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
@@ -998,6 +1190,8 @@ public bool Equals(AudioStreamFromParticipantRequest other) {
if (TrackSource != other.TrackSource) return false;
if (SampleRate != other.SampleRate) return false;
if (NumChannels != other.NumChannels) return false;
+ if (AudioFilterModuleId != other.AudioFilterModuleId) return false;
+ if (AudioFilterOptions != other.AudioFilterOptions) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -1010,6 +1204,8 @@ public override int GetHashCode() {
if (HasTrackSource) hash ^= TrackSource.GetHashCode();
if (HasSampleRate) hash ^= SampleRate.GetHashCode();
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasAudioFilterModuleId) hash ^= AudioFilterModuleId.GetHashCode();
+ if (HasAudioFilterOptions) hash ^= AudioFilterOptions.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -1048,6 +1244,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(48);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(58);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(66);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -1078,6 +1282,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(48);
output.WriteUInt32(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ output.WriteRawTag(58);
+ output.WriteString(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ output.WriteRawTag(66);
+ output.WriteString(AudioFilterOptions);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -1103,6 +1315,12 @@ public int CalculateSize() {
if (HasNumChannels) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
}
+ if (HasAudioFilterModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterModuleId);
+ }
+ if (HasAudioFilterOptions) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(AudioFilterOptions);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -1130,6 +1348,12 @@ public void MergeFrom(AudioStreamFromParticipantRequest other) {
if (other.HasNumChannels) {
NumChannels = other.NumChannels;
}
+ if (other.HasAudioFilterModuleId) {
+ AudioFilterModuleId = other.AudioFilterModuleId;
+ }
+ if (other.HasAudioFilterOptions) {
+ AudioFilterOptions = other.AudioFilterOptions;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -1169,6 +1393,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 58: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 66: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -1208,6 +1440,14 @@ public void MergeFrom(pb::CodedInputStream input) {
NumChannels = input.ReadUInt32();
break;
}
+ case 58: {
+ AudioFilterModuleId = input.ReadString();
+ break;
+ }
+ case 66: {
+ AudioFilterOptions = input.ReadString();
+ break;
+ }
}
}
}
@@ -4118,17 +4358,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class NewSoxResamplerRequest : pb::IMessage
+ public sealed partial class NewApmRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewApmRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -4144,7 +4384,7 @@ public sealed partial class NewSoxResamplerRequest : pb::IMessageField number for the "input_rate" field.
- public const int InputRateFieldNumber = 1;
- private readonly static double InputRateDefaultValue = 0D;
+ /// Field number for the "echo_canceller_enabled" field.
+ public const int EchoCancellerEnabledFieldNumber = 1;
+ private readonly static bool EchoCancellerEnabledDefaultValue = false;
- private double inputRate_;
+ private bool echoCancellerEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double InputRate {
- get { if ((_hasBits0 & 1) != 0) { return inputRate_; } else { return InputRateDefaultValue; } }
+ public bool EchoCancellerEnabled {
+ get { if ((_hasBits0 & 1) != 0) { return echoCancellerEnabled_; } else { return EchoCancellerEnabledDefaultValue; } }
set {
_hasBits0 |= 1;
- inputRate_ = value;
+ echoCancellerEnabled_ = value;
}
}
- /// Gets whether the "input_rate" field is set
+ /// Gets whether the "echo_canceller_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasInputRate {
+ public bool HasEchoCancellerEnabled {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "input_rate" field
+ /// Clears the value of the "echo_canceller_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearInputRate() {
+ public void ClearEchoCancellerEnabled() {
_hasBits0 &= ~1;
}
- /// Field number for the "output_rate" field.
- public const int OutputRateFieldNumber = 2;
- private readonly static double OutputRateDefaultValue = 0D;
+ /// Field number for the "gain_controller_enabled" field.
+ public const int GainControllerEnabledFieldNumber = 2;
+ private readonly static bool GainControllerEnabledDefaultValue = false;
- private double outputRate_;
+ private bool gainControllerEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public double OutputRate {
- get { if ((_hasBits0 & 2) != 0) { return outputRate_; } else { return OutputRateDefaultValue; } }
+ public bool GainControllerEnabled {
+ get { if ((_hasBits0 & 2) != 0) { return gainControllerEnabled_; } else { return GainControllerEnabledDefaultValue; } }
set {
_hasBits0 |= 2;
- outputRate_ = value;
+ gainControllerEnabled_ = value;
}
}
- /// Gets whether the "output_rate" field is set
+ /// Gets whether the "gain_controller_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputRate {
+ public bool HasGainControllerEnabled {
get { return (_hasBits0 & 2) != 0; }
}
- /// Clears the value of the "output_rate" field
+ /// Clears the value of the "gain_controller_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputRate() {
+ public void ClearGainControllerEnabled() {
_hasBits0 &= ~2;
}
- /// Field number for the "num_channels" field.
- public const int NumChannelsFieldNumber = 3;
- private readonly static uint NumChannelsDefaultValue = 0;
+ /// Field number for the "high_pass_filter_enabled" field.
+ public const int HighPassFilterEnabledFieldNumber = 3;
+ private readonly static bool HighPassFilterEnabledDefaultValue = false;
- private uint numChannels_;
+ private bool highPassFilterEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint NumChannels {
- get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ public bool HighPassFilterEnabled {
+ get { if ((_hasBits0 & 4) != 0) { return highPassFilterEnabled_; } else { return HighPassFilterEnabledDefaultValue; } }
set {
_hasBits0 |= 4;
- numChannels_ = value;
+ highPassFilterEnabled_ = value;
}
}
- /// Gets whether the "num_channels" field is set
+ /// Gets whether the "high_pass_filter_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNumChannels {
+ public bool HasHighPassFilterEnabled {
get { return (_hasBits0 & 4) != 0; }
}
- /// Clears the value of the "num_channels" field
+ /// Clears the value of the "high_pass_filter_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNumChannels() {
+ public void ClearHighPassFilterEnabled() {
_hasBits0 &= ~4;
}
- /// Field number for the "input_data_type" field.
- public const int InputDataTypeFieldNumber = 4;
- private readonly static global::LiveKit.Proto.SoxResamplerDataType InputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+ /// Field number for the "noise_suppression_enabled" field.
+ public const int NoiseSuppressionEnabledFieldNumber = 4;
+ private readonly static bool NoiseSuppressionEnabledDefaultValue = false;
- private global::LiveKit.Proto.SoxResamplerDataType inputDataType_;
+ private bool noiseSuppressionEnabled_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxResamplerDataType InputDataType {
- get { if ((_hasBits0 & 8) != 0) { return inputDataType_; } else { return InputDataTypeDefaultValue; } }
+ public bool NoiseSuppressionEnabled {
+ get { if ((_hasBits0 & 8) != 0) { return noiseSuppressionEnabled_; } else { return NoiseSuppressionEnabledDefaultValue; } }
set {
_hasBits0 |= 8;
- inputDataType_ = value;
+ noiseSuppressionEnabled_ = value;
}
}
- /// Gets whether the "input_data_type" field is set
+ /// Gets whether the "noise_suppression_enabled" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasInputDataType {
+ public bool HasNoiseSuppressionEnabled {
get { return (_hasBits0 & 8) != 0; }
}
- /// Clears the value of the "input_data_type" field
+ /// Clears the value of the "noise_suppression_enabled" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearInputDataType() {
+ public void ClearNoiseSuppressionEnabled() {
_hasBits0 &= ~8;
}
- /// Field number for the "output_data_type" field.
- public const int OutputDataTypeFieldNumber = 5;
- private readonly static global::LiveKit.Proto.SoxResamplerDataType OutputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
-
- private global::LiveKit.Proto.SoxResamplerDataType outputDataType_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxResamplerDataType OutputDataType {
- get { if ((_hasBits0 & 16) != 0) { return outputDataType_; } else { return OutputDataTypeDefaultValue; } }
- set {
- _hasBits0 |= 16;
- outputDataType_ = value;
- }
- }
- /// Gets whether the "output_data_type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputDataType {
- get { return (_hasBits0 & 16) != 0; }
- }
- /// Clears the value of the "output_data_type" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputDataType() {
- _hasBits0 &= ~16;
- }
-
- /// Field number for the "quality_recipe" field.
- public const int QualityRecipeFieldNumber = 6;
- private readonly static global::LiveKit.Proto.SoxQualityRecipe QualityRecipeDefaultValue = global::LiveKit.Proto.SoxQualityRecipe.SoxrQualityQuick;
-
- private global::LiveKit.Proto.SoxQualityRecipe qualityRecipe_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.SoxQualityRecipe QualityRecipe {
- get { if ((_hasBits0 & 32) != 0) { return qualityRecipe_; } else { return QualityRecipeDefaultValue; } }
- set {
- _hasBits0 |= 32;
- qualityRecipe_ = value;
- }
- }
- /// Gets whether the "quality_recipe" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasQualityRecipe {
- get { return (_hasBits0 & 32) != 0; }
- }
- /// Clears the value of the "quality_recipe" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearQualityRecipe() {
- _hasBits0 &= ~32;
- }
-
- /// Field number for the "flags" field.
- public const int FlagsFieldNumber = 7;
- private readonly static uint FlagsDefaultValue = 0;
-
- private uint flags_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Flags {
- get { if ((_hasBits0 & 64) != 0) { return flags_; } else { return FlagsDefaultValue; } }
- set {
- _hasBits0 |= 64;
- flags_ = value;
- }
- }
- /// Gets whether the "flags" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasFlags {
- get { return (_hasBits0 & 64) != 0; }
- }
- /// Clears the value of the "flags" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearFlags() {
- _hasBits0 &= ~64;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as NewSoxResamplerRequest);
+ return Equals(other as NewApmRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NewSoxResamplerRequest other) {
+ public bool Equals(NewApmRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InputRate, other.InputRate)) return false;
- if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputRate, other.OutputRate)) return false;
- if (NumChannels != other.NumChannels) return false;
- if (InputDataType != other.InputDataType) return false;
- if (OutputDataType != other.OutputDataType) return false;
- if (QualityRecipe != other.QualityRecipe) return false;
- if (Flags != other.Flags) return false;
+ if (EchoCancellerEnabled != other.EchoCancellerEnabled) return false;
+ if (GainControllerEnabled != other.GainControllerEnabled) return false;
+ if (HighPassFilterEnabled != other.HighPassFilterEnabled) return false;
+ if (NoiseSuppressionEnabled != other.NoiseSuppressionEnabled) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -4388,13 +4541,10 @@ public bool Equals(NewSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasInputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InputRate);
- if (HasOutputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputRate);
- if (HasNumChannels) hash ^= NumChannels.GetHashCode();
- if (HasInputDataType) hash ^= InputDataType.GetHashCode();
- if (HasOutputDataType) hash ^= OutputDataType.GetHashCode();
- if (HasQualityRecipe) hash ^= QualityRecipe.GetHashCode();
- if (HasFlags) hash ^= Flags.GetHashCode();
+ if (HasEchoCancellerEnabled) hash ^= EchoCancellerEnabled.GetHashCode();
+ if (HasGainControllerEnabled) hash ^= GainControllerEnabled.GetHashCode();
+ if (HasHighPassFilterEnabled) hash ^= HighPassFilterEnabled.GetHashCode();
+ if (HasNoiseSuppressionEnabled) hash ^= NoiseSuppressionEnabled.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -4413,33 +4563,21 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasInputRate) {
- output.WriteRawTag(9);
- output.WriteDouble(InputRate);
+ if (HasEchoCancellerEnabled) {
+ output.WriteRawTag(8);
+ output.WriteBool(EchoCancellerEnabled);
}
- if (HasOutputRate) {
- output.WriteRawTag(17);
- output.WriteDouble(OutputRate);
+ if (HasGainControllerEnabled) {
+ output.WriteRawTag(16);
+ output.WriteBool(GainControllerEnabled);
}
- if (HasNumChannels) {
+ if (HasHighPassFilterEnabled) {
output.WriteRawTag(24);
- output.WriteUInt32(NumChannels);
+ output.WriteBool(HighPassFilterEnabled);
}
- if (HasInputDataType) {
+ if (HasNoiseSuppressionEnabled) {
output.WriteRawTag(32);
- output.WriteEnum((int) InputDataType);
- }
- if (HasOutputDataType) {
- output.WriteRawTag(40);
- output.WriteEnum((int) OutputDataType);
- }
- if (HasQualityRecipe) {
- output.WriteRawTag(48);
- output.WriteEnum((int) QualityRecipe);
- }
- if (HasFlags) {
- output.WriteRawTag(56);
- output.WriteUInt32(Flags);
+ output.WriteBool(NoiseSuppressionEnabled);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -4451,33 +4589,21 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasInputRate) {
- output.WriteRawTag(9);
- output.WriteDouble(InputRate);
+ if (HasEchoCancellerEnabled) {
+ output.WriteRawTag(8);
+ output.WriteBool(EchoCancellerEnabled);
}
- if (HasOutputRate) {
- output.WriteRawTag(17);
- output.WriteDouble(OutputRate);
+ if (HasGainControllerEnabled) {
+ output.WriteRawTag(16);
+ output.WriteBool(GainControllerEnabled);
}
- if (HasNumChannels) {
+ if (HasHighPassFilterEnabled) {
output.WriteRawTag(24);
- output.WriteUInt32(NumChannels);
+ output.WriteBool(HighPassFilterEnabled);
}
- if (HasInputDataType) {
+ if (HasNoiseSuppressionEnabled) {
output.WriteRawTag(32);
- output.WriteEnum((int) InputDataType);
- }
- if (HasOutputDataType) {
- output.WriteRawTag(40);
- output.WriteEnum((int) OutputDataType);
- }
- if (HasQualityRecipe) {
- output.WriteRawTag(48);
- output.WriteEnum((int) QualityRecipe);
- }
- if (HasFlags) {
- output.WriteRawTag(56);
- output.WriteUInt32(Flags);
+ output.WriteBool(NoiseSuppressionEnabled);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -4489,26 +4615,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasInputRate) {
- size += 1 + 8;
- }
- if (HasOutputRate) {
- size += 1 + 8;
- }
- if (HasNumChannels) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
- }
- if (HasInputDataType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputDataType);
+ if (HasEchoCancellerEnabled) {
+ size += 1 + 1;
}
- if (HasOutputDataType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputDataType);
+ if (HasGainControllerEnabled) {
+ size += 1 + 1;
}
- if (HasQualityRecipe) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityRecipe);
+ if (HasHighPassFilterEnabled) {
+ size += 1 + 1;
}
- if (HasFlags) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flags);
+ if (HasNoiseSuppressionEnabled) {
+ size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -4518,30 +4635,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NewSoxResamplerRequest other) {
+ public void MergeFrom(NewApmRequest other) {
if (other == null) {
return;
}
- if (other.HasInputRate) {
- InputRate = other.InputRate;
- }
- if (other.HasOutputRate) {
- OutputRate = other.OutputRate;
- }
- if (other.HasNumChannels) {
- NumChannels = other.NumChannels;
- }
- if (other.HasInputDataType) {
- InputDataType = other.InputDataType;
+ if (other.HasEchoCancellerEnabled) {
+ EchoCancellerEnabled = other.EchoCancellerEnabled;
}
- if (other.HasOutputDataType) {
- OutputDataType = other.OutputDataType;
+ if (other.HasGainControllerEnabled) {
+ GainControllerEnabled = other.GainControllerEnabled;
}
- if (other.HasQualityRecipe) {
- QualityRecipe = other.QualityRecipe;
+ if (other.HasHighPassFilterEnabled) {
+ HighPassFilterEnabled = other.HighPassFilterEnabled;
}
- if (other.HasFlags) {
- Flags = other.Flags;
+ if (other.HasNoiseSuppressionEnabled) {
+ NoiseSuppressionEnabled = other.NoiseSuppressionEnabled;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -4562,32 +4670,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 9: {
- InputRate = input.ReadDouble();
+ case 8: {
+ EchoCancellerEnabled = input.ReadBool();
break;
}
- case 17: {
- OutputRate = input.ReadDouble();
+ case 16: {
+ GainControllerEnabled = input.ReadBool();
break;
}
case 24: {
- NumChannels = input.ReadUInt32();
+ HighPassFilterEnabled = input.ReadBool();
break;
}
case 32: {
- InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 40: {
- OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 48: {
- QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
- break;
- }
- case 56: {
- Flags = input.ReadUInt32();
+ NoiseSuppressionEnabled = input.ReadBool();
break;
}
}
@@ -4609,32 +4705,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 9: {
- InputRate = input.ReadDouble();
+ case 8: {
+ EchoCancellerEnabled = input.ReadBool();
break;
}
- case 17: {
- OutputRate = input.ReadDouble();
+ case 16: {
+ GainControllerEnabled = input.ReadBool();
break;
}
case 24: {
- NumChannels = input.ReadUInt32();
+ HighPassFilterEnabled = input.ReadBool();
break;
}
case 32: {
- InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 40: {
- OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
- break;
- }
- case 48: {
- QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
- break;
- }
- case 56: {
- Flags = input.ReadUInt32();
+ NoiseSuppressionEnabled = input.ReadBool();
break;
}
}
@@ -4645,16 +4729,16 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class NewSoxResamplerResponse : pb::IMessage
+ public sealed partial class NewApmResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewApmResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -4670,7 +4754,7 @@ public sealed partial class NewSoxResamplerResponse : pb::IMessageField number for the "resampler" field.
- public const int ResamplerFieldNumber = 1;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.OwnedSoxResampler Resampler {
- get { return messageCase_ == MessageOneofCase.Resampler ? (global::LiveKit.Proto.OwnedSoxResampler) message_ : null; }
- set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Resampler;
- }
+ public NewApmResponse Clone() {
+ return new NewApmResponse(this);
}
- /// Field number for the "error" field.
- public const int ErrorFieldNumber = 2;
+ /// Field number for the "apm" field.
+ public const int ApmFieldNumber = 1;
+ private global::LiveKit.Proto.OwnedApm apm_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Error {
- get { return HasError ? (string) message_ : ""; }
+ public global::LiveKit.Proto.OwnedApm Apm {
+ get { return apm_; }
set {
- message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- messageCase_ = MessageOneofCase.Error;
- }
- }
- /// Gets whether the "error" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasError {
- get { return messageCase_ == MessageOneofCase.Error; }
- }
- /// Clears the value of the oneof if it's currently set to "error"
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearError() {
- if (HasError) {
- ClearMessage();
+ apm_ = value;
}
}
- private object message_;
- /// Enum of possible cases for the "message" oneof.
- public enum MessageOneofCase {
- None = 0,
- Resampler = 1,
- Error = 2,
- }
- private MessageOneofCase messageCase_ = MessageOneofCase.None;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public MessageOneofCase MessageCase {
- get { return messageCase_; }
- }
-
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearMessage() {
- messageCase_ = MessageOneofCase.None;
- message_ = null;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as NewSoxResamplerResponse);
+ return Equals(other as NewApmResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(NewSoxResamplerResponse other) {
+ public bool Equals(NewApmResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Resampler, other.Resampler)) return false;
- if (Error != other.Error) return false;
- if (MessageCase != other.MessageCase) return false;
+ if (!object.Equals(Apm, other.Apm)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -4781,9 +4808,7 @@ public bool Equals(NewSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (messageCase_ == MessageOneofCase.Resampler) hash ^= Resampler.GetHashCode();
- if (HasError) hash ^= Error.GetHashCode();
- hash ^= (int) messageCase_;
+ if (apm_ != null) hash ^= Apm.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -4802,13 +4827,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (messageCase_ == MessageOneofCase.Resampler) {
+ if (apm_ != null) {
output.WriteRawTag(10);
- output.WriteMessage(Resampler);
- }
- if (HasError) {
- output.WriteRawTag(18);
- output.WriteString(Error);
+ output.WriteMessage(Apm);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -4820,13 +4841,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (messageCase_ == MessageOneofCase.Resampler) {
+ if (apm_ != null) {
output.WriteRawTag(10);
- output.WriteMessage(Resampler);
- }
- if (HasError) {
- output.WriteRawTag(18);
- output.WriteString(Error);
+ output.WriteMessage(Apm);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -4838,11 +4855,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (messageCase_ == MessageOneofCase.Resampler) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler);
- }
- if (HasError) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ if (apm_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Apm);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -4852,22 +4866,16 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(NewSoxResamplerResponse other) {
+ public void MergeFrom(NewApmResponse other) {
if (other == null) {
return;
}
- switch (other.MessageCase) {
- case MessageOneofCase.Resampler:
- if (Resampler == null) {
- Resampler = new global::LiveKit.Proto.OwnedSoxResampler();
- }
- Resampler.MergeFrom(other.Resampler);
- break;
- case MessageOneofCase.Error:
- Error = other.Error;
- break;
+ if (other.apm_ != null) {
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
+ }
+ Apm.MergeFrom(other.Apm);
}
-
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -4888,16 +4896,10 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
- global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
- if (messageCase_ == MessageOneofCase.Resampler) {
- subBuilder.MergeFrom(Resampler);
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
}
- input.ReadMessage(subBuilder);
- Resampler = subBuilder;
- break;
- }
- case 18: {
- Error = input.ReadString();
+ input.ReadMessage(Apm);
break;
}
}
@@ -4920,16 +4922,10 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
- global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
- if (messageCase_ == MessageOneofCase.Resampler) {
- subBuilder.MergeFrom(Resampler);
+ if (apm_ == null) {
+ Apm = new global::LiveKit.Proto.OwnedApm();
}
- input.ReadMessage(subBuilder);
- Resampler = subBuilder;
- break;
- }
- case 18: {
- Error = input.ReadString();
+ input.ReadMessage(Apm);
break;
}
}
@@ -4940,17 +4936,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class PushSoxResamplerRequest : pb::IMessage
+ public sealed partial class ApmProcessStreamRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessStreamRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -4966,7 +4962,7 @@ public sealed partial class PushSoxResamplerRequest : pb::IMessageField number for the "resampler_handle" field.
- public const int ResamplerHandleFieldNumber = 1;
- private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+ /// Field number for the "apm_handle" field.
+ public const int ApmHandleFieldNumber = 1;
+ private readonly static ulong ApmHandleDefaultValue = 0UL;
- private ulong resamplerHandle_;
+ private ulong apmHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong ResamplerHandle {
- get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ public ulong ApmHandle {
+ get { if ((_hasBits0 & 1) != 0) { return apmHandle_; } else { return ApmHandleDefaultValue; } }
set {
_hasBits0 |= 1;
- resamplerHandle_ = value;
+ apmHandle_ = value;
}
}
- /// Gets whether the "resampler_handle" field is set
+ /// Gets whether the "apm_handle" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasResamplerHandle {
+ public bool HasApmHandle {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "resampler_handle" field
+ /// Clears the value of the "apm_handle" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearResamplerHandle() {
+ public void ClearApmHandle() {
_hasBits0 &= ~1;
}
@@ -5021,7 +5019,7 @@ public void ClearResamplerHandle() {
private ulong dataPtr_;
///
- /// *const i16
+ /// *mut i16
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5075,24 +5073,80 @@ public void ClearSize() {
_hasBits0 &= ~4;
}
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 4;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 8) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 5;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 16) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~16;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as PushSoxResamplerRequest);
+ return Equals(other as ApmProcessStreamRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(PushSoxResamplerRequest other) {
+ public bool Equals(ApmProcessStreamRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (ApmHandle != other.ApmHandle) return false;
if (DataPtr != other.DataPtr) return false;
if (Size != other.Size) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (NumChannels != other.NumChannels) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5100,9 +5154,11 @@ public bool Equals(PushSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (HasApmHandle) hash ^= ApmHandle.GetHashCode();
if (HasDataPtr) hash ^= DataPtr.GetHashCode();
if (HasSize) hash ^= Size.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5121,9 +5177,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasResamplerHandle) {
+ if (HasApmHandle) {
output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ output.WriteUInt64(ApmHandle);
}
if (HasDataPtr) {
output.WriteRawTag(16);
@@ -5133,6 +5189,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(24);
output.WriteUInt32(Size);
}
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -5143,9 +5207,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasResamplerHandle) {
+ if (HasApmHandle) {
output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ output.WriteUInt64(ApmHandle);
}
if (HasDataPtr) {
output.WriteRawTag(16);
@@ -5155,6 +5219,14 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(24);
output.WriteUInt32(Size);
}
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -5165,8 +5237,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasResamplerHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ if (HasApmHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApmHandle);
}
if (HasDataPtr) {
size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
@@ -5174,6 +5246,12 @@ public int CalculateSize() {
if (HasSize) {
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
}
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -5182,12 +5260,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(PushSoxResamplerRequest other) {
+ public void MergeFrom(ApmProcessStreamRequest other) {
if (other == null) {
return;
}
- if (other.HasResamplerHandle) {
- ResamplerHandle = other.ResamplerHandle;
+ if (other.HasApmHandle) {
+ ApmHandle = other.ApmHandle;
}
if (other.HasDataPtr) {
DataPtr = other.DataPtr;
@@ -5195,6 +5273,12 @@ public void MergeFrom(PushSoxResamplerRequest other) {
if (other.HasSize) {
Size = other.Size;
}
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -5215,7 +5299,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- ResamplerHandle = input.ReadUInt64();
+ ApmHandle = input.ReadUInt64();
break;
}
case 16: {
@@ -5226,6 +5310,14 @@ public void MergeFrom(pb::CodedInputStream input) {
Size = input.ReadUInt32();
break;
}
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
}
}
#endif
@@ -5246,7 +5338,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- ResamplerHandle = input.ReadUInt64();
+ ApmHandle = input.ReadUInt64();
break;
}
case 16: {
@@ -5257,6 +5349,14 @@ public void MergeFrom(pb::CodedInputStream input) {
Size = input.ReadUInt32();
break;
}
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
}
}
}
@@ -5265,17 +5365,16 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class PushSoxResamplerResponse : pb::IMessage
+ public sealed partial class ApmProcessStreamResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessStreamResponse());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5291,7 +5390,7 @@ public sealed partial class PushSoxResamplerResponse : pb::IMessageField number for the "output_ptr" field.
- public const int OutputPtrFieldNumber = 1;
- private readonly static ulong OutputPtrDefaultValue = 0UL;
-
- private ulong outputPtr_;
- ///
- /// *const i16 (could be null)
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong OutputPtr {
- get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
- set {
- _hasBits0 |= 1;
- outputPtr_ = value;
- }
- }
- /// Gets whether the "output_ptr" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputPtr {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "output_ptr" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputPtr() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "size" field.
- public const int SizeFieldNumber = 2;
- private readonly static uint SizeDefaultValue = 0;
-
- private uint size_;
- ///
- /// in bytes
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Size {
- get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- size_ = value;
- }
- }
- /// Gets whether the "size" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSize {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "size" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSize() {
- _hasBits0 &= ~2;
+ public ApmProcessStreamResponse Clone() {
+ return new ApmProcessStreamResponse(this);
}
/// Field number for the "error" field.
- public const int ErrorFieldNumber = 3;
+ public const int ErrorFieldNumber = 1;
private readonly static string ErrorDefaultValue = "";
private string error_;
@@ -5402,20 +5438,18 @@ public void ClearError() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as PushSoxResamplerResponse);
+ return Equals(other as ApmProcessStreamResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(PushSoxResamplerResponse other) {
+ public bool Equals(ApmProcessStreamResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (OutputPtr != other.OutputPtr) return false;
- if (Size != other.Size) return false;
if (Error != other.Error) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5424,8 +5458,6 @@ public bool Equals(PushSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
- if (HasSize) hash ^= Size.GetHashCode();
if (HasError) hash ^= Error.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
@@ -5445,16 +5477,8 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasOutputPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
if (HasError) {
- output.WriteRawTag(26);
+ output.WriteRawTag(10);
output.WriteString(Error);
}
if (_unknownFields != null) {
@@ -5467,16 +5491,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasOutputPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
if (HasError) {
- output.WriteRawTag(26);
+ output.WriteRawTag(10);
output.WriteString(Error);
}
if (_unknownFields != null) {
@@ -5489,12 +5505,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasOutputPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
- }
- if (HasSize) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
- }
if (HasError) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
}
@@ -5506,16 +5516,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(PushSoxResamplerResponse other) {
+ public void MergeFrom(ApmProcessStreamResponse other) {
if (other == null) {
return;
}
- if (other.HasOutputPtr) {
- OutputPtr = other.OutputPtr;
- }
- if (other.HasSize) {
- Size = other.Size;
- }
if (other.HasError) {
Error = other.Error;
}
@@ -5538,15 +5542,7 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
+ case 10: {
Error = input.ReadString();
break;
}
@@ -5569,15 +5565,7 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
+ case 10: {
Error = input.ReadString();
break;
}
@@ -5589,17 +5577,17 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class FlushSoxResamplerRequest : pb::IMessage
+ public sealed partial class ApmProcessReverseStreamRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerRequest());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessReverseStreamRequest());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -5615,7 +5603,7 @@ public sealed partial class FlushSoxResamplerRequest : pb::IMessageField number for the "resampler_handle" field.
- public const int ResamplerHandleFieldNumber = 1;
- private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+ /// Field number for the "apm_handle" field.
+ public const int ApmHandleFieldNumber = 1;
+ private readonly static ulong ApmHandleDefaultValue = 0UL;
- private ulong resamplerHandle_;
+ private ulong apmHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong ResamplerHandle {
- get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ public ulong ApmHandle {
+ get { if ((_hasBits0 & 1) != 0) { return apmHandle_; } else { return ApmHandleDefaultValue; } }
set {
_hasBits0 |= 1;
- resamplerHandle_ = value;
+ apmHandle_ = value;
}
}
- /// Gets whether the "resampler_handle" field is set
+ /// Gets whether the "apm_handle" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasResamplerHandle {
+ public bool HasApmHandle {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "resampler_handle" field
+ /// Clears the value of the "apm_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearApmHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 2;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *mut i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 3;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 4;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 8) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 5;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 16) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~16;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmProcessReverseStreamRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmProcessReverseStreamRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ApmHandle != other.ApmHandle) return false;
+ if (DataPtr != other.DataPtr) return false;
+ if (Size != other.Size) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (NumChannels != other.NumChannels) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasApmHandle) hash ^= ApmHandle.GetHashCode();
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(40);
+ output.WriteUInt32(NumChannels);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasApmHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApmHandle);
+ }
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmProcessReverseStreamRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasApmHandle) {
+ ApmHandle = other.ApmHandle;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 40: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ApmProcessReverseStreamResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmProcessReverseStreamResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[20]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse(ApmProcessReverseStreamResponse other) : this() {
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmProcessReverseStreamResponse Clone() {
+ return new ApmProcessReverseStreamResponse(this);
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 1;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmProcessReverseStreamResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmProcessReverseStreamResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmProcessReverseStreamResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ApmSetStreamDelayRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmSetStreamDelayRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[21]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayRequest(ApmSetStreamDelayRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ apmHandle_ = other.apmHandle_;
+ delayMs_ = other.delayMs_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayRequest Clone() {
+ return new ApmSetStreamDelayRequest(this);
+ }
+
+ /// Field number for the "apm_handle" field.
+ public const int ApmHandleFieldNumber = 1;
+ private readonly static ulong ApmHandleDefaultValue = 0UL;
+
+ private ulong apmHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ApmHandle {
+ get { if ((_hasBits0 & 1) != 0) { return apmHandle_; } else { return ApmHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ apmHandle_ = value;
+ }
+ }
+ /// Gets whether the "apm_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasApmHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "apm_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearApmHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "delay_ms" field.
+ public const int DelayMsFieldNumber = 2;
+ private readonly static int DelayMsDefaultValue = 0;
+
+ private int delayMs_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int DelayMs {
+ get { if ((_hasBits0 & 2) != 0) { return delayMs_; } else { return DelayMsDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ delayMs_ = value;
+ }
+ }
+ /// Gets whether the "delay_ms" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDelayMs {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "delay_ms" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDelayMs() {
+ _hasBits0 &= ~2;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmSetStreamDelayRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmSetStreamDelayRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ApmHandle != other.ApmHandle) return false;
+ if (DelayMs != other.DelayMs) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasApmHandle) hash ^= ApmHandle.GetHashCode();
+ if (HasDelayMs) hash ^= DelayMs.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDelayMs) {
+ output.WriteRawTag(16);
+ output.WriteInt32(DelayMs);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasApmHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ApmHandle);
+ }
+ if (HasDelayMs) {
+ output.WriteRawTag(16);
+ output.WriteInt32(DelayMs);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasApmHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ApmHandle);
+ }
+ if (HasDelayMs) {
+ size += 1 + pb::CodedOutputStream.ComputeInt32Size(DelayMs);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmSetStreamDelayRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasApmHandle) {
+ ApmHandle = other.ApmHandle;
+ }
+ if (other.HasDelayMs) {
+ DelayMs = other.DelayMs;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DelayMs = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ApmHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DelayMs = input.ReadInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class ApmSetStreamDelayResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApmSetStreamDelayResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayResponse(ApmSetStreamDelayResponse other) : this() {
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ApmSetStreamDelayResponse Clone() {
+ return new ApmSetStreamDelayResponse(this);
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 1;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as ApmSetStreamDelayResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(ApmSetStreamDelayResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasError) {
+ output.WriteRawTag(10);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(ApmSetStreamDelayResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class NewSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[23]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest(NewSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ inputRate_ = other.inputRate_;
+ outputRate_ = other.outputRate_;
+ numChannels_ = other.numChannels_;
+ inputDataType_ = other.inputDataType_;
+ outputDataType_ = other.outputDataType_;
+ qualityRecipe_ = other.qualityRecipe_;
+ flags_ = other.flags_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerRequest Clone() {
+ return new NewSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "input_rate" field.
+ public const int InputRateFieldNumber = 1;
+ private readonly static double InputRateDefaultValue = 0D;
+
+ private double inputRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double InputRate {
+ get { if ((_hasBits0 & 1) != 0) { return inputRate_; } else { return InputRateDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ inputRate_ = value;
+ }
+ }
+ /// Gets whether the "input_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasInputRate {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "input_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearInputRate() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "output_rate" field.
+ public const int OutputRateFieldNumber = 2;
+ private readonly static double OutputRateDefaultValue = 0D;
+
+ private double outputRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public double OutputRate {
+ get { if ((_hasBits0 & 2) != 0) { return outputRate_; } else { return OutputRateDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ outputRate_ = value;
+ }
+ }
+ /// Gets whether the "output_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputRate {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "output_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputRate() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 3;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 4) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "input_data_type" field.
+ public const int InputDataTypeFieldNumber = 4;
+ private readonly static global::LiveKit.Proto.SoxResamplerDataType InputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+
+ private global::LiveKit.Proto.SoxResamplerDataType inputDataType_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxResamplerDataType InputDataType {
+ get { if ((_hasBits0 & 8) != 0) { return inputDataType_; } else { return InputDataTypeDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ inputDataType_ = value;
+ }
+ }
+ /// Gets whether the "input_data_type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasInputDataType {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "input_data_type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearInputDataType() {
+ _hasBits0 &= ~8;
+ }
+
+ /// Field number for the "output_data_type" field.
+ public const int OutputDataTypeFieldNumber = 5;
+ private readonly static global::LiveKit.Proto.SoxResamplerDataType OutputDataTypeDefaultValue = global::LiveKit.Proto.SoxResamplerDataType.SoxrDatatypeInt16I;
+
+ private global::LiveKit.Proto.SoxResamplerDataType outputDataType_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxResamplerDataType OutputDataType {
+ get { if ((_hasBits0 & 16) != 0) { return outputDataType_; } else { return OutputDataTypeDefaultValue; } }
+ set {
+ _hasBits0 |= 16;
+ outputDataType_ = value;
+ }
+ }
+ /// Gets whether the "output_data_type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputDataType {
+ get { return (_hasBits0 & 16) != 0; }
+ }
+ /// Clears the value of the "output_data_type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputDataType() {
+ _hasBits0 &= ~16;
+ }
+
+ /// Field number for the "quality_recipe" field.
+ public const int QualityRecipeFieldNumber = 6;
+ private readonly static global::LiveKit.Proto.SoxQualityRecipe QualityRecipeDefaultValue = global::LiveKit.Proto.SoxQualityRecipe.SoxrQualityQuick;
+
+ private global::LiveKit.Proto.SoxQualityRecipe qualityRecipe_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.SoxQualityRecipe QualityRecipe {
+ get { if ((_hasBits0 & 32) != 0) { return qualityRecipe_; } else { return QualityRecipeDefaultValue; } }
+ set {
+ _hasBits0 |= 32;
+ qualityRecipe_ = value;
+ }
+ }
+ /// Gets whether the "quality_recipe" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasQualityRecipe {
+ get { return (_hasBits0 & 32) != 0; }
+ }
+ /// Clears the value of the "quality_recipe" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearQualityRecipe() {
+ _hasBits0 &= ~32;
+ }
+
+ /// Field number for the "flags" field.
+ public const int FlagsFieldNumber = 7;
+ private readonly static uint FlagsDefaultValue = 0;
+
+ private uint flags_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Flags {
+ get { if ((_hasBits0 & 64) != 0) { return flags_; } else { return FlagsDefaultValue; } }
+ set {
+ _hasBits0 |= 64;
+ flags_ = value;
+ }
+ }
+ /// Gets whether the "flags" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasFlags {
+ get { return (_hasBits0 & 64) != 0; }
+ }
+ /// Clears the value of the "flags" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearFlags() {
+ _hasBits0 &= ~64;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as NewSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(NewSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(InputRate, other.InputRate)) return false;
+ if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputRate, other.OutputRate)) return false;
+ if (NumChannels != other.NumChannels) return false;
+ if (InputDataType != other.InputDataType) return false;
+ if (OutputDataType != other.OutputDataType) return false;
+ if (QualityRecipe != other.QualityRecipe) return false;
+ if (Flags != other.Flags) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasInputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(InputRate);
+ if (HasOutputRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputRate);
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasInputDataType) hash ^= InputDataType.GetHashCode();
+ if (HasOutputDataType) hash ^= OutputDataType.GetHashCode();
+ if (HasQualityRecipe) hash ^= QualityRecipe.GetHashCode();
+ if (HasFlags) hash ^= Flags.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasInputRate) {
+ output.WriteRawTag(9);
+ output.WriteDouble(InputRate);
+ }
+ if (HasOutputRate) {
+ output.WriteRawTag(17);
+ output.WriteDouble(OutputRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasInputDataType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ output.WriteRawTag(40);
+ output.WriteEnum((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ output.WriteRawTag(56);
+ output.WriteUInt32(Flags);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasInputRate) {
+ output.WriteRawTag(9);
+ output.WriteDouble(InputRate);
+ }
+ if (HasOutputRate) {
+ output.WriteRawTag(17);
+ output.WriteDouble(OutputRate);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasInputDataType) {
+ output.WriteRawTag(32);
+ output.WriteEnum((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ output.WriteRawTag(40);
+ output.WriteEnum((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ output.WriteRawTag(48);
+ output.WriteEnum((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ output.WriteRawTag(56);
+ output.WriteUInt32(Flags);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasInputRate) {
+ size += 1 + 8;
+ }
+ if (HasOutputRate) {
+ size += 1 + 8;
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (HasInputDataType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) InputDataType);
+ }
+ if (HasOutputDataType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputDataType);
+ }
+ if (HasQualityRecipe) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityRecipe);
+ }
+ if (HasFlags) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Flags);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(NewSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasInputRate) {
+ InputRate = other.InputRate;
+ }
+ if (other.HasOutputRate) {
+ OutputRate = other.OutputRate;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ if (other.HasInputDataType) {
+ InputDataType = other.InputDataType;
+ }
+ if (other.HasOutputDataType) {
+ OutputDataType = other.OutputDataType;
+ }
+ if (other.HasQualityRecipe) {
+ QualityRecipe = other.QualityRecipe;
+ }
+ if (other.HasFlags) {
+ Flags = other.Flags;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 9: {
+ InputRate = input.ReadDouble();
+ break;
+ }
+ case 17: {
+ OutputRate = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 40: {
+ OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 48: {
+ QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Flags = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 9: {
+ InputRate = input.ReadDouble();
+ break;
+ }
+ case 17: {
+ OutputRate = input.ReadDouble();
+ break;
+ }
+ case 24: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ InputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 40: {
+ OutputDataType = (global::LiveKit.Proto.SoxResamplerDataType) input.ReadEnum();
+ break;
+ }
+ case 48: {
+ QualityRecipe = (global::LiveKit.Proto.SoxQualityRecipe) input.ReadEnum();
+ break;
+ }
+ case 56: {
+ Flags = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class NewSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NewSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[24]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse(NewSoxResamplerResponse other) : this() {
+ switch (other.MessageCase) {
+ case MessageOneofCase.Resampler:
+ Resampler = other.Resampler.Clone();
+ break;
+ case MessageOneofCase.Error:
+ Error = other.Error;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public NewSoxResamplerResponse Clone() {
+ return new NewSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "resampler" field.
+ public const int ResamplerFieldNumber = 1;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.OwnedSoxResampler Resampler {
+ get { return messageCase_ == MessageOneofCase.Resampler ? (global::LiveKit.Proto.OwnedSoxResampler) message_ : null; }
+ set {
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Resampler;
+ }
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 2;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return HasError ? (string) message_ : ""; }
+ set {
+ message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ messageCase_ = MessageOneofCase.Error;
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return messageCase_ == MessageOneofCase.Error; }
+ }
+ /// Clears the value of the oneof if it's currently set to "error"
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ if (HasError) {
+ ClearMessage();
+ }
+ }
+
+ private object message_;
+ /// Enum of possible cases for the "message" oneof.
+ public enum MessageOneofCase {
+ None = 0,
+ Resampler = 1,
+ Error = 2,
+ }
+ private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOneofCase MessageCase {
+ get { return messageCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearMessage() {
+ messageCase_ = MessageOneofCase.None;
+ message_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as NewSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(NewSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (!object.Equals(Resampler, other.Resampler)) return false;
+ if (Error != other.Error) return false;
+ if (MessageCase != other.MessageCase) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (messageCase_ == MessageOneofCase.Resampler) hash ^= Resampler.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ hash ^= (int) messageCase_;
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Resampler);
+ }
+ if (HasError) {
+ output.WriteRawTag(18);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Resampler);
+ }
+ if (HasError) {
+ output.WriteRawTag(18);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resampler);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(NewSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ switch (other.MessageCase) {
+ case MessageOneofCase.Resampler:
+ if (Resampler == null) {
+ Resampler = new global::LiveKit.Proto.OwnedSoxResampler();
+ }
+ Resampler.MergeFrom(other.Resampler);
+ break;
+ case MessageOneofCase.Error:
+ Error = other.Error;
+ break;
+ }
+
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 10: {
+ global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ subBuilder.MergeFrom(Resampler);
+ }
+ input.ReadMessage(subBuilder);
+ Resampler = subBuilder;
+ break;
+ }
+ case 18: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 10: {
+ global::LiveKit.Proto.OwnedSoxResampler subBuilder = new global::LiveKit.Proto.OwnedSoxResampler();
+ if (messageCase_ == MessageOneofCase.Resampler) {
+ subBuilder.MergeFrom(Resampler);
+ }
+ input.ReadMessage(subBuilder);
+ Resampler = subBuilder;
+ break;
+ }
+ case 18: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class PushSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[25]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest(PushSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ resamplerHandle_ = other.resamplerHandle_;
+ dataPtr_ = other.dataPtr_;
+ size_ = other.size_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerRequest Clone() {
+ return new PushSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "resampler_handle" field.
+ public const int ResamplerHandleFieldNumber = 1;
+ private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+
+ private ulong resamplerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ResamplerHandle {
+ get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ resamplerHandle_ = value;
+ }
+ }
+ /// Gets whether the "resampler_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasResamplerHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "resampler_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearResamplerHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 2;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *const i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 2) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 3;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 4) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~4;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PushSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PushSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (DataPtr != other.DataPtr) return false;
+ if (Size != other.Size) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ output.WriteRawTag(16);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(Size);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasResamplerHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ }
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PushSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasResamplerHandle) {
+ ResamplerHandle = other.ResamplerHandle;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 24: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class PushSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[26]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse(PushSoxResamplerResponse other) : this() {
+ _hasBits0 = other._hasBits0;
+ outputPtr_ = other.outputPtr_;
+ size_ = other.size_;
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public PushSoxResamplerResponse Clone() {
+ return new PushSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "output_ptr" field.
+ public const int OutputPtrFieldNumber = 1;
+ private readonly static ulong OutputPtrDefaultValue = 0UL;
+
+ private ulong outputPtr_;
+ ///
+ /// *const i16 (could be null)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong OutputPtr {
+ get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ outputPtr_ = value;
+ }
+ }
+ /// Gets whether the "output_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "output_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 2;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 3;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as PushSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(PushSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (OutputPtr != other.OutputPtr) return false;
+ if (Size != other.Size) return false;
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasOutputPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(PushSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasOutputPtr) {
+ OutputPtr = other.OutputPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class FlushSoxResamplerRequest : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerRequest());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[27]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest(FlushSoxResamplerRequest other) : this() {
+ _hasBits0 = other._hasBits0;
+ resamplerHandle_ = other.resamplerHandle_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerRequest Clone() {
+ return new FlushSoxResamplerRequest(this);
+ }
+
+ /// Field number for the "resampler_handle" field.
+ public const int ResamplerHandleFieldNumber = 1;
+ private readonly static ulong ResamplerHandleDefaultValue = 0UL;
+
+ private ulong resamplerHandle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong ResamplerHandle {
+ get { if ((_hasBits0 & 1) != 0) { return resamplerHandle_; } else { return ResamplerHandleDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ resamplerHandle_ = value;
+ }
+ }
+ /// Gets whether the "resampler_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasResamplerHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "resampler_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearResamplerHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as FlushSoxResamplerRequest);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(FlushSoxResamplerRequest other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (ResamplerHandle != other.ResamplerHandle) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasResamplerHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasResamplerHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(FlushSoxResamplerRequest other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasResamplerHandle) {
+ ResamplerHandle = other.ResamplerHandle;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ ResamplerHandle = input.ReadUInt64();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class FlushSoxResamplerResponse : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerResponse());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[28]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse(FlushSoxResamplerResponse other) : this() {
+ _hasBits0 = other._hasBits0;
+ outputPtr_ = other.outputPtr_;
+ size_ = other.size_;
+ error_ = other.error_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public FlushSoxResamplerResponse Clone() {
+ return new FlushSoxResamplerResponse(this);
+ }
+
+ /// Field number for the "output_ptr" field.
+ public const int OutputPtrFieldNumber = 1;
+ private readonly static ulong OutputPtrDefaultValue = 0UL;
+
+ private ulong outputPtr_;
+ ///
+ /// *const i16 (could be null)
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong OutputPtr {
+ get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ outputPtr_ = value;
+ }
+ }
+ /// Gets whether the "output_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasOutputPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "output_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearOutputPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "size" field.
+ public const int SizeFieldNumber = 2;
+ private readonly static uint SizeDefaultValue = 0;
+
+ private uint size_;
+ ///
+ /// in bytes
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint Size {
+ get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ size_ = value;
+ }
+ }
+ /// Gets whether the "size" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSize {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "size" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSize() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "error" field.
+ public const int ErrorFieldNumber = 3;
+ private readonly static string ErrorDefaultValue = "";
+
+ private string error_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string Error {
+ get { return error_ ?? ErrorDefaultValue; }
+ set {
+ error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "error" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasError {
+ get { return error_ != null; }
+ }
+ /// Clears the value of the "error" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearError() {
+ error_ = null;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as FlushSoxResamplerResponse);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(FlushSoxResamplerResponse other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (OutputPtr != other.OutputPtr) return false;
+ if (Size != other.Size) return false;
+ if (Error != other.Error) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
+ if (HasSize) hash ^= Size.GetHashCode();
+ if (HasError) hash ^= Error.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasOutputPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(OutputPtr);
+ }
+ if (HasSize) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(Size);
+ }
+ if (HasError) {
+ output.WriteRawTag(26);
+ output.WriteString(Error);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasOutputPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
+ }
+ if (HasSize) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
+ }
+ if (HasError) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(FlushSoxResamplerResponse other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasOutputPtr) {
+ OutputPtr = other.OutputPtr;
+ }
+ if (other.HasSize) {
+ Size = other.Size;
+ }
+ if (other.HasError) {
+ Error = other.Error;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ OutputPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ Size = input.ReadUInt32();
+ break;
+ }
+ case 26: {
+ Error = input.ReadString();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class AudioFrameBufferInfo : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo());
+ private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[29]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo(AudioFrameBufferInfo other) : this() {
+ _hasBits0 = other._hasBits0;
+ dataPtr_ = other.dataPtr_;
+ numChannels_ = other.numChannels_;
+ sampleRate_ = other.sampleRate_;
+ samplesPerChannel_ = other.samplesPerChannel_;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public AudioFrameBufferInfo Clone() {
+ return new AudioFrameBufferInfo(this);
+ }
+
+ /// Field number for the "data_ptr" field.
+ public const int DataPtrFieldNumber = 1;
+ private readonly static ulong DataPtrDefaultValue = 0UL;
+
+ private ulong dataPtr_;
+ ///
+ /// *const i16
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public ulong DataPtr {
+ get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
+ set {
+ _hasBits0 |= 1;
+ dataPtr_ = value;
+ }
+ }
+ /// Gets whether the "data_ptr" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasDataPtr {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "data_ptr" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearDataPtr() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "num_channels" field.
+ public const int NumChannelsFieldNumber = 2;
+ private readonly static uint NumChannelsDefaultValue = 0;
+
+ private uint numChannels_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint NumChannels {
+ get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
+ set {
+ _hasBits0 |= 2;
+ numChannels_ = value;
+ }
+ }
+ /// Gets whether the "num_channels" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNumChannels {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "num_channels" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNumChannels() {
+ _hasBits0 &= ~2;
+ }
+
+ /// Field number for the "sample_rate" field.
+ public const int SampleRateFieldNumber = 3;
+ private readonly static uint SampleRateDefaultValue = 0;
+
+ private uint sampleRate_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SampleRate {
+ get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ set {
+ _hasBits0 |= 4;
+ sampleRate_ = value;
+ }
+ }
+ /// Gets whether the "sample_rate" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSampleRate {
+ get { return (_hasBits0 & 4) != 0; }
+ }
+ /// Clears the value of the "sample_rate" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSampleRate() {
+ _hasBits0 &= ~4;
+ }
+
+ /// Field number for the "samples_per_channel" field.
+ public const int SamplesPerChannelFieldNumber = 4;
+ private readonly static uint SamplesPerChannelDefaultValue = 0;
+
+ private uint samplesPerChannel_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public uint SamplesPerChannel {
+ get { if ((_hasBits0 & 8) != 0) { return samplesPerChannel_; } else { return SamplesPerChannelDefaultValue; } }
+ set {
+ _hasBits0 |= 8;
+ samplesPerChannel_ = value;
+ }
+ }
+ /// Gets whether the "samples_per_channel" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasSamplesPerChannel {
+ get { return (_hasBits0 & 8) != 0; }
+ }
+ /// Clears the value of the "samples_per_channel" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearSamplesPerChannel() {
+ _hasBits0 &= ~8;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override bool Equals(object other) {
+ return Equals(other as AudioFrameBufferInfo);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool Equals(AudioFrameBufferInfo other) {
+ if (ReferenceEquals(other, null)) {
+ return false;
+ }
+ if (ReferenceEquals(other, this)) {
+ return true;
+ }
+ if (DataPtr != other.DataPtr) return false;
+ if (NumChannels != other.NumChannels) return false;
+ if (SampleRate != other.SampleRate) return false;
+ if (SamplesPerChannel != other.SamplesPerChannel) return false;
+ return Equals(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override int GetHashCode() {
+ int hash = 1;
+ if (HasDataPtr) hash ^= DataPtr.GetHashCode();
+ if (HasNumChannels) hash ^= NumChannels.GetHashCode();
+ if (HasSampleRate) hash ^= SampleRate.GetHashCode();
+ if (HasSamplesPerChannel) hash ^= SamplesPerChannel.GetHashCode();
+ if (_unknownFields != null) {
+ hash ^= _unknownFields.GetHashCode();
+ }
+ return hash;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public override string ToString() {
+ return pb::JsonFormatter.ToDiagnosticString(this);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void WriteTo(pb::CodedOutputStream output) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ output.WriteRawMessage(this);
+ #else
+ if (HasDataPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(output);
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasDataPtr) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(DataPtr);
+ }
+ if (HasNumChannels) {
+ output.WriteRawTag(16);
+ output.WriteUInt32(NumChannels);
+ }
+ if (HasSampleRate) {
+ output.WriteRawTag(24);
+ output.WriteUInt32(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ output.WriteRawTag(32);
+ output.WriteUInt32(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ _unknownFields.WriteTo(ref output);
+ }
+ }
+ #endif
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public int CalculateSize() {
+ int size = 0;
+ if (HasDataPtr) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
+ }
+ if (HasNumChannels) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
+ }
+ if (HasSampleRate) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ }
+ if (HasSamplesPerChannel) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel);
+ }
+ if (_unknownFields != null) {
+ size += _unknownFields.CalculateSize();
+ }
+ return size;
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(AudioFrameBufferInfo other) {
+ if (other == null) {
+ return;
+ }
+ if (other.HasDataPtr) {
+ DataPtr = other.DataPtr;
+ }
+ if (other.HasNumChannels) {
+ NumChannels = other.NumChannels;
+ }
+ if (other.HasSampleRate) {
+ SampleRate = other.SampleRate;
+ }
+ if (other.HasSamplesPerChannel) {
+ SamplesPerChannel = other.SamplesPerChannel;
+ }
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void MergeFrom(pb::CodedInputStream input) {
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ input.ReadRawMessage(this);
+ #else
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
+ break;
+ case 8: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 24: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SamplesPerChannel = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ #endif
+ }
+
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
+ uint tag;
+ while ((tag = input.ReadTag()) != 0) {
+ if ((tag & 7) == 4) {
+ // Abort on any end group tag.
+ return;
+ }
+ switch(tag) {
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
+ break;
+ case 8: {
+ DataPtr = input.ReadUInt64();
+ break;
+ }
+ case 16: {
+ NumChannels = input.ReadUInt32();
+ break;
+ }
+ case 24: {
+ SampleRate = input.ReadUInt32();
+ break;
+ }
+ case 32: {
+ SamplesPerChannel = input.ReadUInt32();
+ break;
+ }
+ }
+ }
+ }
+ #endif
+
+ }
+
+ [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
+ public sealed partial class OwnedAudioFrameBuffer : pb::IMessage
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
+ , pb::IBufferMessage
+ #endif
+ {
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer());
+ private pb::UnknownFieldSet _unknownFields;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pb::MessageParser Parser { get { return _parser; } }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public static pbr::MessageDescriptor Descriptor {
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[30]; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
+ get { return Descriptor; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer(OwnedAudioFrameBuffer other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public OwnedAudioFrameBuffer Clone() {
+ return new OwnedAudioFrameBuffer(this);
+ }
+
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
+ set {
+ handle_ = value;
+ }
+ }
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioFrameBufferInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearResamplerHandle() {
- _hasBits0 &= ~1;
+ public global::LiveKit.Proto.AudioFrameBufferInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as FlushSoxResamplerRequest);
+ return Equals(other as OwnedAudioFrameBuffer);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(FlushSoxResamplerRequest other) {
+ public bool Equals(OwnedAudioFrameBuffer other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (ResamplerHandle != other.ResamplerHandle) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5685,7 +9174,8 @@ public bool Equals(FlushSoxResamplerRequest other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasResamplerHandle) hash ^= ResamplerHandle.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5704,9 +9194,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasResamplerHandle) {
- output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -5718,9 +9212,13 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasResamplerHandle) {
- output.WriteRawTag(8);
- output.WriteUInt64(ResamplerHandle);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -5732,8 +9230,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasResamplerHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(ResamplerHandle);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -5743,12 +9244,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(FlushSoxResamplerRequest other) {
+ public void MergeFrom(OwnedAudioFrameBuffer other) {
if (other == null) {
return;
}
- if (other.HasResamplerHandle) {
- ResamplerHandle = other.ResamplerHandle;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -5769,8 +9279,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- ResamplerHandle = input.ReadUInt64();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -5792,8 +9312,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- ResamplerHandle = input.ReadUInt64();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -5804,22 +9334,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class FlushSoxResamplerResponse : pb::IMessage
+ public sealed partial class AudioStreamInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FlushSoxResamplerResponse());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[20]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[31]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -5830,7 +9360,7 @@ public sealed partial class FlushSoxResamplerResponse : pb::IMessageField number for the "output_ptr" field.
- public const int OutputPtrFieldNumber = 1;
- private readonly static ulong OutputPtrDefaultValue = 0UL;
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 1;
+ private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative;
- private ulong outputPtr_;
- ///
- /// *const i16 (could be null)
- ///
+ private global::LiveKit.Proto.AudioStreamType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong OutputPtr {
- get { if ((_hasBits0 & 1) != 0) { return outputPtr_; } else { return OutputPtrDefaultValue; } }
+ public global::LiveKit.Proto.AudioStreamType Type {
+ get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
_hasBits0 |= 1;
- outputPtr_ = value;
+ type_ = value;
}
}
- /// Gets whether the "output_ptr" field is set
+ /// Gets whether the "type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasOutputPtr {
+ public bool HasType {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "output_ptr" field
+ /// Clears the value of the "type" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearOutputPtr() {
+ public void ClearType() {
_hasBits0 &= ~1;
}
- /// Field number for the "size" field.
- public const int SizeFieldNumber = 2;
- private readonly static uint SizeDefaultValue = 0;
-
- private uint size_;
- ///
- /// in bytes
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint Size {
- get { if ((_hasBits0 & 2) != 0) { return size_; } else { return SizeDefaultValue; } }
- set {
- _hasBits0 |= 2;
- size_ = value;
- }
- }
- /// Gets whether the "size" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSize {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "size" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSize() {
- _hasBits0 &= ~2;
- }
-
- /// Field number for the "error" field.
- public const int ErrorFieldNumber = 3;
- private readonly static string ErrorDefaultValue = "";
-
- private string error_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public string Error {
- get { return error_ ?? ErrorDefaultValue; }
- set {
- error_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
- }
- }
- /// Gets whether the "error" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasError {
- get { return error_ != null; }
- }
- /// Clears the value of the "error" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearError() {
- error_ = null;
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as FlushSoxResamplerResponse);
+ return Equals(other as AudioStreamInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(FlushSoxResamplerResponse other) {
+ public bool Equals(AudioStreamInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (OutputPtr != other.OutputPtr) return false;
- if (Size != other.Size) return false;
- if (Error != other.Error) return false;
+ if (Type != other.Type) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -5963,9 +9430,7 @@ public bool Equals(FlushSoxResamplerResponse other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasOutputPtr) hash ^= OutputPtr.GetHashCode();
- if (HasSize) hash ^= Size.GetHashCode();
- if (HasError) hash ^= Error.GetHashCode();
+ if (HasType) hash ^= Type.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -5984,17 +9449,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasOutputPtr) {
+ if (HasType) {
output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
- if (HasError) {
- output.WriteRawTag(26);
- output.WriteString(Error);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6006,17 +9463,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasOutputPtr) {
+ if (HasType) {
output.WriteRawTag(8);
- output.WriteUInt64(OutputPtr);
- }
- if (HasSize) {
- output.WriteRawTag(16);
- output.WriteUInt32(Size);
- }
- if (HasError) {
- output.WriteRawTag(26);
- output.WriteString(Error);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6028,14 +9477,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasOutputPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(OutputPtr);
- }
- if (HasSize) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Size);
- }
- if (HasError) {
- size += 1 + pb::CodedOutputStream.ComputeStringSize(Error);
+ if (HasType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6045,18 +9488,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(FlushSoxResamplerResponse other) {
+ public void MergeFrom(AudioStreamInfo other) {
if (other == null) {
return;
}
- if (other.HasOutputPtr) {
- OutputPtr = other.OutputPtr;
- }
- if (other.HasSize) {
- Size = other.Size;
- }
- if (other.HasError) {
- Error = other.Error;
+ if (other.HasType) {
+ Type = other.Type;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6078,15 +9515,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
- Error = input.ReadString();
+ Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
break;
}
}
@@ -6109,15 +9538,7 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- OutputPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- Size = input.ReadUInt32();
- break;
- }
- case 26: {
- Error = input.ReadString();
+ Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
break;
}
}
@@ -6128,22 +9549,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioFrameBufferInfo : pb::IMessage
+ public sealed partial class OwnedAudioStream : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameBufferInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioStream());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[21]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[32]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6154,7 +9574,7 @@ public sealed partial class AudioFrameBufferInfo : pb::IMessageField number for the "data_ptr" field.
- public const int DataPtrFieldNumber = 1;
- private readonly static ulong DataPtrDefaultValue = 0UL;
-
- private ulong dataPtr_;
- ///
- /// *const i16
- ///
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong DataPtr {
- get { if ((_hasBits0 & 1) != 0) { return dataPtr_; } else { return DataPtrDefaultValue; } }
- set {
- _hasBits0 |= 1;
- dataPtr_ = value;
- }
- }
- /// Gets whether the "data_ptr" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasDataPtr {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "data_ptr" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearDataPtr() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "num_channels" field.
- public const int NumChannelsFieldNumber = 2;
- private readonly static uint NumChannelsDefaultValue = 0;
-
- private uint numChannels_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint NumChannels {
- get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
- set {
- _hasBits0 |= 2;
- numChannels_ = value;
- }
- }
- /// Gets whether the "num_channels" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNumChannels {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "num_channels" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNumChannels() {
- _hasBits0 &= ~2;
+ public OwnedAudioStream Clone() {
+ return new OwnedAudioStream(this);
}
- /// Field number for the "sample_rate" field.
- public const int SampleRateFieldNumber = 3;
- private readonly static uint SampleRateDefaultValue = 0;
-
- private uint sampleRate_;
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint SampleRate {
- get { if ((_hasBits0 & 4) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
set {
- _hasBits0 |= 4;
- sampleRate_ = value;
+ handle_ = value;
}
}
- /// Gets whether the "sample_rate" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSampleRate {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// Clears the value of the "sample_rate" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSampleRate() {
- _hasBits0 &= ~4;
- }
- /// Field number for the "samples_per_channel" field.
- public const int SamplesPerChannelFieldNumber = 4;
- private readonly static uint SamplesPerChannelDefaultValue = 0;
-
- private uint samplesPerChannel_;
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioStreamInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public uint SamplesPerChannel {
- get { if ((_hasBits0 & 8) != 0) { return samplesPerChannel_; } else { return SamplesPerChannelDefaultValue; } }
+ public global::LiveKit.Proto.AudioStreamInfo Info {
+ get { return info_; }
set {
- _hasBits0 |= 8;
- samplesPerChannel_ = value;
+ info_ = value;
}
}
- /// Gets whether the "samples_per_channel" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasSamplesPerChannel {
- get { return (_hasBits0 & 8) != 0; }
- }
- /// Clears the value of the "samples_per_channel" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearSamplesPerChannel() {
- _hasBits0 &= ~8;
- }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioFrameBufferInfo);
+ return Equals(other as OwnedAudioStream);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioFrameBufferInfo other) {
+ public bool Equals(OwnedAudioStream other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (DataPtr != other.DataPtr) return false;
- if (NumChannels != other.NumChannels) return false;
- if (SampleRate != other.SampleRate) return false;
- if (SamplesPerChannel != other.SamplesPerChannel) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6314,10 +9642,8 @@ public bool Equals(AudioFrameBufferInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasDataPtr) hash ^= DataPtr.GetHashCode();
- if (HasNumChannels) hash ^= NumChannels.GetHashCode();
- if (HasSampleRate) hash ^= SampleRate.GetHashCode();
- if (HasSamplesPerChannel) hash ^= SamplesPerChannel.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6336,21 +9662,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasDataPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(DataPtr);
- }
- if (HasNumChannels) {
- output.WriteRawTag(16);
- output.WriteUInt32(NumChannels);
- }
- if (HasSampleRate) {
- output.WriteRawTag(24);
- output.WriteUInt32(SampleRate);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
}
- if (HasSamplesPerChannel) {
- output.WriteRawTag(32);
- output.WriteUInt32(SamplesPerChannel);
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6362,21 +9680,13 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasDataPtr) {
- output.WriteRawTag(8);
- output.WriteUInt64(DataPtr);
- }
- if (HasNumChannels) {
- output.WriteRawTag(16);
- output.WriteUInt32(NumChannels);
- }
- if (HasSampleRate) {
- output.WriteRawTag(24);
- output.WriteUInt32(SampleRate);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
}
- if (HasSamplesPerChannel) {
- output.WriteRawTag(32);
- output.WriteUInt32(SamplesPerChannel);
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6388,17 +9698,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasDataPtr) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(DataPtr);
- }
- if (HasNumChannels) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(NumChannels);
- }
- if (HasSampleRate) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SampleRate);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
}
- if (HasSamplesPerChannel) {
- size += 1 + pb::CodedOutputStream.ComputeUInt32Size(SamplesPerChannel);
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6408,21 +9712,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioFrameBufferInfo other) {
+ public void MergeFrom(OwnedAudioStream other) {
if (other == null) {
return;
}
- if (other.HasDataPtr) {
- DataPtr = other.DataPtr;
- }
- if (other.HasNumChannels) {
- NumChannels = other.NumChannels;
- }
- if (other.HasSampleRate) {
- SampleRate = other.SampleRate;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
}
- if (other.HasSamplesPerChannel) {
- SamplesPerChannel = other.SamplesPerChannel;
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6440,23 +9744,21 @@ public void MergeFrom(pb::CodedInputStream input) {
return;
}
switch(tag) {
- default:
- _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
- break;
- case 8: {
- DataPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- NumChannels = input.ReadUInt32();
+ default:
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- }
- case 24: {
- SampleRate = input.ReadUInt32();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
break;
}
- case 32: {
- SamplesPerChannel = input.ReadUInt32();
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -6478,20 +9780,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- DataPtr = input.ReadUInt64();
- break;
- }
- case 16: {
- NumChannels = input.ReadUInt32();
- break;
- }
- case 24: {
- SampleRate = input.ReadUInt32();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
break;
}
- case 32: {
- SamplesPerChannel = input.ReadUInt32();
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioStreamInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -6502,21 +9802,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioFrameBuffer : pb::IMessage
+ public sealed partial class AudioStreamEvent : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioFrameBuffer());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent());
private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[22]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[33]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6527,7 +9828,7 @@ public sealed partial class OwnedAudioFrameBuffer : pb::IMessageField number for the "handle" field.
- public const int HandleFieldNumber = 1;
- private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ /// Field number for the "stream_handle" field.
+ public const int StreamHandleFieldNumber = 1;
+ private readonly static ulong StreamHandleDefaultValue = 0UL;
+
+ private ulong streamHandle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.FfiOwnedHandle Handle {
- get { return handle_; }
+ public ulong StreamHandle {
+ get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } }
set {
- handle_ = value;
+ _hasBits0 |= 1;
+ streamHandle_ = value;
+ }
+ }
+ /// Gets whether the "stream_handle" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasStreamHandle {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "stream_handle" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearStreamHandle() {
+ _hasBits0 &= ~1;
+ }
+
+ /// Field number for the "frame_received" field.
+ public const int FrameReceivedFieldNumber = 2;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.AudioFrameReceived FrameReceived {
+ get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; }
+ set {
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived;
}
}
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioFrameBufferInfo info_;
+ /// Field number for the "eos" field.
+ public const int EosFieldNumber = 3;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioFrameBufferInfo Info {
- get { return info_; }
+ public global::LiveKit.Proto.AudioStreamEOS Eos {
+ get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.AudioStreamEOS) message_ : null; }
set {
- info_ = value;
+ message_ = value;
+ messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos;
}
}
+ private object message_;
+ /// Enum of possible cases for the "message" oneof.
+ public enum MessageOneofCase {
+ None = 0,
+ FrameReceived = 2,
+ Eos = 3,
+ }
+ private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public MessageOneofCase MessageCase {
+ get { return messageCase_; }
+ }
+
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearMessage() {
+ messageCase_ = MessageOneofCase.None;
+ message_ = null;
+ }
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioFrameBuffer);
+ return Equals(other as AudioStreamEvent);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioFrameBuffer other) {
+ public bool Equals(AudioStreamEvent other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
+ if (StreamHandle != other.StreamHandle) return false;
+ if (!object.Equals(FrameReceived, other.FrameReceived)) return false;
+ if (!object.Equals(Eos, other.Eos)) return false;
+ if (MessageCase != other.MessageCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6595,8 +9955,10 @@ public bool Equals(OwnedAudioFrameBuffer other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
+ if (HasStreamHandle) hash ^= StreamHandle.GetHashCode();
+ if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode();
+ if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode();
+ hash ^= (int) messageCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6615,13 +9977,17 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
+ if (HasStreamHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(StreamHandle);
}
- if (info_ != null) {
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteMessage(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Eos);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6633,13 +9999,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
+ if (HasStreamHandle) {
+ output.WriteRawTag(8);
+ output.WriteUInt64(StreamHandle);
}
- if (info_ != null) {
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
output.WriteRawTag(18);
- output.WriteMessage(Info);
+ output.WriteMessage(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ output.WriteRawTag(26);
+ output.WriteMessage(Eos);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6651,11 +10021,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (handle_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ if (HasStreamHandle) {
+ size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle);
}
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived);
+ }
+ if (messageCase_ == MessageOneofCase.Eos) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6665,22 +10038,28 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioFrameBuffer other) {
+ public void MergeFrom(AudioStreamEvent other) {
if (other == null) {
return;
}
- if (other.handle_ != null) {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- Handle.MergeFrom(other.Handle);
+ if (other.HasStreamHandle) {
+ StreamHandle = other.StreamHandle;
}
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
- }
- Info.MergeFrom(other.Info);
+ switch (other.MessageCase) {
+ case MessageOneofCase.FrameReceived:
+ if (FrameReceived == null) {
+ FrameReceived = new global::LiveKit.Proto.AudioFrameReceived();
+ }
+ FrameReceived.MergeFrom(other.FrameReceived);
+ break;
+ case MessageOneofCase.Eos:
+ if (Eos == null) {
+ Eos = new global::LiveKit.Proto.AudioStreamEOS();
+ }
+ Eos.MergeFrom(other.Eos);
+ break;
}
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6700,18 +10079,26 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
+ case 8: {
+ StreamHandle = input.ReadUInt64();
break;
}
case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ subBuilder.MergeFrom(FrameReceived);
}
- input.ReadMessage(Info);
+ input.ReadMessage(subBuilder);
+ FrameReceived = subBuilder;
+ break;
+ }
+ case 26: {
+ global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
+ if (messageCase_ == MessageOneofCase.Eos) {
+ subBuilder.MergeFrom(Eos);
+ }
+ input.ReadMessage(subBuilder);
+ Eos = subBuilder;
break;
}
}
@@ -6733,18 +10120,26 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ case 8: {
+ StreamHandle = input.ReadUInt64();
+ break;
+ }
+ case 18: {
+ global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
+ if (messageCase_ == MessageOneofCase.FrameReceived) {
+ subBuilder.MergeFrom(FrameReceived);
}
- input.ReadMessage(Handle);
+ input.ReadMessage(subBuilder);
+ FrameReceived = subBuilder;
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioFrameBufferInfo();
+ case 26: {
+ global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
+ if (messageCase_ == MessageOneofCase.Eos) {
+ subBuilder.MergeFrom(Eos);
}
- input.ReadMessage(Info);
+ input.ReadMessage(subBuilder);
+ Eos = subBuilder;
break;
}
}
@@ -6755,22 +10150,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamInfo : pb::IMessage
+ public sealed partial class AudioFrameReceived : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[23]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[34]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6781,7 +10175,7 @@ public sealed partial class AudioStreamInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo() {
+ public AudioFrameReceived() {
OnConstruction();
}
@@ -6789,61 +10183,45 @@ public AudioStreamInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo(AudioStreamInfo other) : this() {
- _hasBits0 = other._hasBits0;
- type_ = other.type_;
+ public AudioFrameReceived(AudioFrameReceived other) : this() {
+ frame_ = other.frame_ != null ? other.frame_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamInfo Clone() {
- return new AudioStreamInfo(this);
+ public AudioFrameReceived Clone() {
+ return new AudioFrameReceived(this);
}
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 1;
- private readonly static global::LiveKit.Proto.AudioStreamType TypeDefaultValue = global::LiveKit.Proto.AudioStreamType.AudioStreamNative;
-
- private global::LiveKit.Proto.AudioStreamType type_;
+ /// Field number for the "frame" field.
+ public const int FrameFieldNumber = 1;
+ private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamType Type {
- get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
+ public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame {
+ get { return frame_; }
set {
- _hasBits0 |= 1;
- type_ = value;
+ frame_ = value;
}
}
- /// Gets whether the "type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasType {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "type" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearType() {
- _hasBits0 &= ~1;
- }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamInfo);
+ return Equals(other as AudioFrameReceived);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamInfo other) {
+ public bool Equals(AudioFrameReceived other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (Type != other.Type) return false;
+ if (!object.Equals(Frame, other.Frame)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -6851,7 +10229,7 @@ public bool Equals(AudioStreamInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasType) hash ^= Type.GetHashCode();
+ if (frame_ != null) hash ^= Frame.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -6870,9 +10248,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasType) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Type);
+ if (frame_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Frame);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -6884,9 +10262,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasType) {
- output.WriteRawTag(8);
- output.WriteEnum((int) Type);
+ if (frame_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Frame);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -6898,8 +10276,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ if (frame_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -6909,12 +10287,15 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamInfo other) {
+ public void MergeFrom(AudioFrameReceived other) {
if (other == null) {
return;
}
- if (other.HasType) {
- Type = other.Type;
+ if (other.frame_ != null) {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ Frame.MergeFrom(other.Frame);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -6935,8 +10316,11 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
+ case 10: {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ input.ReadMessage(Frame);
break;
}
}
@@ -6958,8 +10342,11 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- Type = (global::LiveKit.Proto.AudioStreamType) input.ReadEnum();
+ case 10: {
+ if (frame_ == null) {
+ Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
+ }
+ input.ReadMessage(Frame);
break;
}
}
@@ -6970,21 +10357,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioStream : pb::IMessage
+ public sealed partial class AudioStreamEOS : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioStream());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEOS());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[24]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[35]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -6995,7 +10382,7 @@ public sealed partial class OwnedAudioStream : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream() {
+ public AudioStreamEOS() {
OnConstruction();
}
@@ -7003,59 +10390,31 @@ public OwnedAudioStream() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream(OwnedAudioStream other) : this() {
- handle_ = other.handle_ != null ? other.handle_.Clone() : null;
- info_ = other.info_ != null ? other.info_.Clone() : null;
+ public AudioStreamEOS(AudioStreamEOS other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioStream Clone() {
- return new OwnedAudioStream(this);
- }
-
- /// Field number for the "handle" field.
- public const int HandleFieldNumber = 1;
- private global::LiveKit.Proto.FfiOwnedHandle handle_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.FfiOwnedHandle Handle {
- get { return handle_; }
- set {
- handle_ = value;
- }
- }
-
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioStreamInfo info_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamInfo Info {
- get { return info_; }
- set {
- info_ = value;
- }
+ public AudioStreamEOS Clone() {
+ return new AudioStreamEOS(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioStream);
+ return Equals(other as AudioStreamEOS);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioStream other) {
+ public bool Equals(AudioStreamEOS other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7063,8 +10422,6 @@ public bool Equals(OwnedAudioStream other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7083,14 +10440,6 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -7101,14 +10450,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (handle_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Handle);
- }
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -7119,12 +10460,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (handle_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
- }
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -7133,22 +10468,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioStream other) {
+ public void MergeFrom(AudioStreamEOS other) {
if (other == null) {
return;
}
- if (other.handle_ != null) {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- Handle.MergeFrom(other.Handle);
- }
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- Info.MergeFrom(other.Info);
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7168,20 +10491,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
#endif
@@ -7201,20 +10510,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (handle_ == null) {
- Handle = new global::LiveKit.Proto.FfiOwnedHandle();
- }
- input.ReadMessage(Handle);
- break;
- }
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioStreamInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
}
@@ -7223,22 +10518,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamEvent : pb::IMessage
+ public sealed partial class AudioSourceOptions : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEvent());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[25]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[36]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7249,7 +10544,7 @@ public sealed partial class AudioStreamEvent : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent() {
+ public AudioSourceOptions() {
OnConstruction();
}
@@ -7257,118 +10552,119 @@ public AudioStreamEvent() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent(AudioStreamEvent other) : this() {
+ public AudioSourceOptions(AudioSourceOptions other) : this() {
_hasBits0 = other._hasBits0;
- streamHandle_ = other.streamHandle_;
- switch (other.MessageCase) {
- case MessageOneofCase.FrameReceived:
- FrameReceived = other.FrameReceived.Clone();
- break;
- case MessageOneofCase.Eos:
- Eos = other.Eos.Clone();
- break;
- }
-
+ echoCancellation_ = other.echoCancellation_;
+ noiseSuppression_ = other.noiseSuppression_;
+ autoGainControl_ = other.autoGainControl_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEvent Clone() {
- return new AudioStreamEvent(this);
+ public AudioSourceOptions Clone() {
+ return new AudioSourceOptions(this);
}
- /// Field number for the "stream_handle" field.
- public const int StreamHandleFieldNumber = 1;
- private readonly static ulong StreamHandleDefaultValue = 0UL;
+ /// Field number for the "echo_cancellation" field.
+ public const int EchoCancellationFieldNumber = 1;
+ private readonly static bool EchoCancellationDefaultValue = false;
- private ulong streamHandle_;
+ private bool echoCancellation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public ulong StreamHandle {
- get { if ((_hasBits0 & 1) != 0) { return streamHandle_; } else { return StreamHandleDefaultValue; } }
+ public bool EchoCancellation {
+ get { if ((_hasBits0 & 1) != 0) { return echoCancellation_; } else { return EchoCancellationDefaultValue; } }
set {
_hasBits0 |= 1;
- streamHandle_ = value;
+ echoCancellation_ = value;
}
}
- /// Gets whether the "stream_handle" field is set
+ /// Gets whether the "echo_cancellation" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasStreamHandle {
+ public bool HasEchoCancellation {
get { return (_hasBits0 & 1) != 0; }
}
- /// Clears the value of the "stream_handle" field
+ /// Clears the value of the "echo_cancellation" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearStreamHandle() {
+ public void ClearEchoCancellation() {
_hasBits0 &= ~1;
}
- /// Field number for the "frame_received" field.
- public const int FrameReceivedFieldNumber = 2;
+ /// Field number for the "noise_suppression" field.
+ public const int NoiseSuppressionFieldNumber = 2;
+ private readonly static bool NoiseSuppressionDefaultValue = false;
+
+ private bool noiseSuppression_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioFrameReceived FrameReceived {
- get { return messageCase_ == MessageOneofCase.FrameReceived ? (global::LiveKit.Proto.AudioFrameReceived) message_ : null; }
+ public bool NoiseSuppression {
+ get { if ((_hasBits0 & 2) != 0) { return noiseSuppression_; } else { return NoiseSuppressionDefaultValue; } }
set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.FrameReceived;
+ _hasBits0 |= 2;
+ noiseSuppression_ = value;
}
}
+ /// Gets whether the "noise_suppression" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasNoiseSuppression {
+ get { return (_hasBits0 & 2) != 0; }
+ }
+ /// Clears the value of the "noise_suppression" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearNoiseSuppression() {
+ _hasBits0 &= ~2;
+ }
- /// Field number for the "eos" field.
- public const int EosFieldNumber = 3;
+ /// Field number for the "auto_gain_control" field.
+ public const int AutoGainControlFieldNumber = 3;
+ private readonly static bool AutoGainControlDefaultValue = false;
+
+ private bool autoGainControl_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioStreamEOS Eos {
- get { return messageCase_ == MessageOneofCase.Eos ? (global::LiveKit.Proto.AudioStreamEOS) message_ : null; }
+ public bool AutoGainControl {
+ get { if ((_hasBits0 & 4) != 0) { return autoGainControl_; } else { return AutoGainControlDefaultValue; } }
set {
- message_ = value;
- messageCase_ = value == null ? MessageOneofCase.None : MessageOneofCase.Eos;
+ _hasBits0 |= 4;
+ autoGainControl_ = value;
}
}
-
- private object message_;
- /// Enum of possible cases for the "message" oneof.
- public enum MessageOneofCase {
- None = 0,
- FrameReceived = 2,
- Eos = 3,
- }
- private MessageOneofCase messageCase_ = MessageOneofCase.None;
+ /// Gets whether the "auto_gain_control" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public MessageOneofCase MessageCase {
- get { return messageCase_; }
+ public bool HasAutoGainControl {
+ get { return (_hasBits0 & 4) != 0; }
}
-
+ /// Clears the value of the "auto_gain_control" field
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearMessage() {
- messageCase_ = MessageOneofCase.None;
- message_ = null;
+ public void ClearAutoGainControl() {
+ _hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamEvent);
+ return Equals(other as AudioSourceOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamEvent other) {
+ public bool Equals(AudioSourceOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (StreamHandle != other.StreamHandle) return false;
- if (!object.Equals(FrameReceived, other.FrameReceived)) return false;
- if (!object.Equals(Eos, other.Eos)) return false;
- if (MessageCase != other.MessageCase) return false;
+ if (EchoCancellation != other.EchoCancellation) return false;
+ if (NoiseSuppression != other.NoiseSuppression) return false;
+ if (AutoGainControl != other.AutoGainControl) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7376,10 +10672,9 @@ public bool Equals(AudioStreamEvent other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasStreamHandle) hash ^= StreamHandle.GetHashCode();
- if (messageCase_ == MessageOneofCase.FrameReceived) hash ^= FrameReceived.GetHashCode();
- if (messageCase_ == MessageOneofCase.Eos) hash ^= Eos.GetHashCode();
- hash ^= (int) messageCase_;
+ if (HasEchoCancellation) hash ^= EchoCancellation.GetHashCode();
+ if (HasNoiseSuppression) hash ^= NoiseSuppression.GetHashCode();
+ if (HasAutoGainControl) hash ^= AutoGainControl.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7398,17 +10693,17 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasStreamHandle) {
+ if (HasEchoCancellation) {
output.WriteRawTag(8);
- output.WriteUInt64(StreamHandle);
+ output.WriteBool(EchoCancellation);
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- output.WriteRawTag(18);
- output.WriteMessage(FrameReceived);
+ if (HasNoiseSuppression) {
+ output.WriteRawTag(16);
+ output.WriteBool(NoiseSuppression);
}
- if (messageCase_ == MessageOneofCase.Eos) {
- output.WriteRawTag(26);
- output.WriteMessage(Eos);
+ if (HasAutoGainControl) {
+ output.WriteRawTag(24);
+ output.WriteBool(AutoGainControl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -7420,17 +10715,17 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasStreamHandle) {
+ if (HasEchoCancellation) {
output.WriteRawTag(8);
- output.WriteUInt64(StreamHandle);
+ output.WriteBool(EchoCancellation);
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- output.WriteRawTag(18);
- output.WriteMessage(FrameReceived);
+ if (HasNoiseSuppression) {
+ output.WriteRawTag(16);
+ output.WriteBool(NoiseSuppression);
}
- if (messageCase_ == MessageOneofCase.Eos) {
- output.WriteRawTag(26);
- output.WriteMessage(Eos);
+ if (HasAutoGainControl) {
+ output.WriteRawTag(24);
+ output.WriteBool(AutoGainControl);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -7442,14 +10737,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasStreamHandle) {
- size += 1 + pb::CodedOutputStream.ComputeUInt64Size(StreamHandle);
+ if (HasEchoCancellation) {
+ size += 1 + 1;
}
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(FrameReceived);
+ if (HasNoiseSuppression) {
+ size += 1 + 1;
}
- if (messageCase_ == MessageOneofCase.Eos) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Eos);
+ if (HasAutoGainControl) {
+ size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -7459,28 +10754,19 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamEvent other) {
+ public void MergeFrom(AudioSourceOptions other) {
if (other == null) {
return;
}
- if (other.HasStreamHandle) {
- StreamHandle = other.StreamHandle;
+ if (other.HasEchoCancellation) {
+ EchoCancellation = other.EchoCancellation;
}
- switch (other.MessageCase) {
- case MessageOneofCase.FrameReceived:
- if (FrameReceived == null) {
- FrameReceived = new global::LiveKit.Proto.AudioFrameReceived();
- }
- FrameReceived.MergeFrom(other.FrameReceived);
- break;
- case MessageOneofCase.Eos:
- if (Eos == null) {
- Eos = new global::LiveKit.Proto.AudioStreamEOS();
- }
- Eos.MergeFrom(other.Eos);
- break;
+ if (other.HasNoiseSuppression) {
+ NoiseSuppression = other.NoiseSuppression;
+ }
+ if (other.HasAutoGainControl) {
+ AutoGainControl = other.AutoGainControl;
}
-
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7501,25 +10787,15 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
- StreamHandle = input.ReadUInt64();
+ EchoCancellation = input.ReadBool();
break;
}
- case 18: {
- global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- subBuilder.MergeFrom(FrameReceived);
- }
- input.ReadMessage(subBuilder);
- FrameReceived = subBuilder;
+ case 16: {
+ NoiseSuppression = input.ReadBool();
break;
}
- case 26: {
- global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
- if (messageCase_ == MessageOneofCase.Eos) {
- subBuilder.MergeFrom(Eos);
- }
- input.ReadMessage(subBuilder);
- Eos = subBuilder;
+ case 24: {
+ AutoGainControl = input.ReadBool();
break;
}
}
@@ -7542,25 +10818,15 @@ public void MergeFrom(pb::CodedInputStream input) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
- StreamHandle = input.ReadUInt64();
+ EchoCancellation = input.ReadBool();
break;
}
- case 18: {
- global::LiveKit.Proto.AudioFrameReceived subBuilder = new global::LiveKit.Proto.AudioFrameReceived();
- if (messageCase_ == MessageOneofCase.FrameReceived) {
- subBuilder.MergeFrom(FrameReceived);
- }
- input.ReadMessage(subBuilder);
- FrameReceived = subBuilder;
+ case 16: {
+ NoiseSuppression = input.ReadBool();
break;
}
- case 26: {
- global::LiveKit.Proto.AudioStreamEOS subBuilder = new global::LiveKit.Proto.AudioStreamEOS();
- if (messageCase_ == MessageOneofCase.Eos) {
- subBuilder.MergeFrom(Eos);
- }
- input.ReadMessage(subBuilder);
- Eos = subBuilder;
+ case 24: {
+ AutoGainControl = input.ReadBool();
break;
}
}
@@ -7571,21 +10837,22 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioFrameReceived : pb::IMessage
+ public sealed partial class AudioSourceInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioFrameReceived());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo());
private pb::UnknownFieldSet _unknownFields;
+ private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[26]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[37]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7596,7 +10863,7 @@ public sealed partial class AudioFrameReceived : pb::IMessageField number for the "frame" field.
- public const int FrameFieldNumber = 1;
- private global::LiveKit.Proto.OwnedAudioFrameBuffer frame_;
+ /// Field number for the "type" field.
+ public const int TypeFieldNumber = 2;
+ private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative;
+
+ private global::LiveKit.Proto.AudioSourceType type_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.OwnedAudioFrameBuffer Frame {
- get { return frame_; }
+ public global::LiveKit.Proto.AudioSourceType Type {
+ get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
set {
- frame_ = value;
+ _hasBits0 |= 1;
+ type_ = value;
}
}
+ /// Gets whether the "type" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasType {
+ get { return (_hasBits0 & 1) != 0; }
+ }
+ /// Clears the value of the "type" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearType() {
+ _hasBits0 &= ~1;
+ }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioFrameReceived);
+ return Equals(other as AudioSourceInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioFrameReceived other) {
+ public bool Equals(AudioSourceInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (!object.Equals(Frame, other.Frame)) return false;
+ if (Type != other.Type) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7650,7 +10933,7 @@ public bool Equals(AudioFrameReceived other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (frame_ != null) hash ^= Frame.GetHashCode();
+ if (HasType) hash ^= Type.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7669,9 +10952,9 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (frame_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Frame);
+ if (HasType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -7683,9 +10966,9 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (frame_ != null) {
- output.WriteRawTag(10);
- output.WriteMessage(Frame);
+ if (HasType) {
+ output.WriteRawTag(16);
+ output.WriteEnum((int) Type);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -7697,8 +10980,8 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (frame_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Frame);
+ if (HasType) {
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -7708,15 +10991,12 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioFrameReceived other) {
+ public void MergeFrom(AudioSourceInfo other) {
if (other == null) {
return;
}
- if (other.frame_ != null) {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- Frame.MergeFrom(other.Frame);
+ if (other.HasType) {
+ Type = other.Type;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7737,11 +11017,8 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 10: {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- input.ReadMessage(Frame);
+ case 16: {
+ Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
break;
}
}
@@ -7763,11 +11040,8 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 10: {
- if (frame_ == null) {
- Frame = new global::LiveKit.Proto.OwnedAudioFrameBuffer();
- }
- input.ReadMessage(Frame);
+ case 16: {
+ Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
break;
}
}
@@ -7778,21 +11052,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioStreamEOS : pb::IMessage
+ public sealed partial class OwnedAudioSource : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioStreamEOS());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioSource());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[27]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[38]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7803,7 +11077,7 @@ public sealed partial class AudioStreamEOS : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS() {
+ public OwnedAudioSource() {
OnConstruction();
}
@@ -7811,31 +11085,59 @@ public AudioStreamEOS() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS(AudioStreamEOS other) : this() {
+ public OwnedAudioSource(OwnedAudioSource other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioStreamEOS Clone() {
- return new AudioStreamEOS(this);
+ public OwnedAudioSource Clone() {
+ return new OwnedAudioSource(this);
+ }
+
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
+ set {
+ handle_ = value;
+ }
+ }
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioSourceInfo info_;
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public global::LiveKit.Proto.AudioSourceInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioStreamEOS);
+ return Equals(other as OwnedAudioSource);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioStreamEOS other) {
+ public bool Equals(OwnedAudioSource other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -7843,6 +11145,8 @@ public bool Equals(AudioStreamEOS other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -7861,6 +11165,14 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -7871,6 +11183,14 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -7881,6 +11201,12 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -7889,10 +11215,22 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioStreamEOS other) {
+ public void MergeFrom(OwnedAudioSource other) {
if (other == null) {
return;
}
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ Info.MergeFrom(other.Info);
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -7912,6 +11250,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
}
}
#endif
@@ -7931,6 +11283,20 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioSourceInfo();
+ }
+ input.ReadMessage(Info);
+ break;
+ }
}
}
}
@@ -7939,22 +11305,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioSourceOptions : pb::IMessage
+ public sealed partial class AudioResamplerInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceOptions());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[28]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[39]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -7965,7 +11330,7 @@ public sealed partial class AudioSourceOptions : pb::IMessageField number for the "echo_cancellation" field.
- public const int EchoCancellationFieldNumber = 1;
- private readonly static bool EchoCancellationDefaultValue = false;
-
- private bool echoCancellation_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool EchoCancellation {
- get { if ((_hasBits0 & 1) != 0) { return echoCancellation_; } else { return EchoCancellationDefaultValue; } }
- set {
- _hasBits0 |= 1;
- echoCancellation_ = value;
- }
- }
- /// Gets whether the "echo_cancellation" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasEchoCancellation {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "echo_cancellation" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearEchoCancellation() {
- _hasBits0 &= ~1;
- }
-
- /// Field number for the "noise_suppression" field.
- public const int NoiseSuppressionFieldNumber = 2;
- private readonly static bool NoiseSuppressionDefaultValue = false;
-
- private bool noiseSuppression_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool NoiseSuppression {
- get { if ((_hasBits0 & 2) != 0) { return noiseSuppression_; } else { return NoiseSuppressionDefaultValue; } }
- set {
- _hasBits0 |= 2;
- noiseSuppression_ = value;
- }
- }
- /// Gets whether the "noise_suppression" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasNoiseSuppression {
- get { return (_hasBits0 & 2) != 0; }
- }
- /// Clears the value of the "noise_suppression" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearNoiseSuppression() {
- _hasBits0 &= ~2;
- }
-
- /// Field number for the "auto_gain_control" field.
- public const int AutoGainControlFieldNumber = 3;
- private readonly static bool AutoGainControlDefaultValue = false;
-
- private bool autoGainControl_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool AutoGainControl {
- get { if ((_hasBits0 & 4) != 0) { return autoGainControl_; } else { return AutoGainControlDefaultValue; } }
- set {
- _hasBits0 |= 4;
- autoGainControl_ = value;
- }
- }
- /// Gets whether the "auto_gain_control" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasAutoGainControl {
- get { return (_hasBits0 & 4) != 0; }
- }
- /// Clears the value of the "auto_gain_control" field
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearAutoGainControl() {
- _hasBits0 &= ~4;
+ public AudioResamplerInfo Clone() {
+ return new AudioResamplerInfo(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioSourceOptions);
+ return Equals(other as AudioResamplerInfo);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioSourceOptions other) {
+ public bool Equals(AudioResamplerInfo other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (EchoCancellation != other.EchoCancellation) return false;
- if (NoiseSuppression != other.NoiseSuppression) return false;
- if (AutoGainControl != other.AutoGainControl) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8093,9 +11370,6 @@ public bool Equals(AudioSourceOptions other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasEchoCancellation) hash ^= EchoCancellation.GetHashCode();
- if (HasNoiseSuppression) hash ^= NoiseSuppression.GetHashCode();
- if (HasAutoGainControl) hash ^= AutoGainControl.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8114,18 +11388,6 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasEchoCancellation) {
- output.WriteRawTag(8);
- output.WriteBool(EchoCancellation);
- }
- if (HasNoiseSuppression) {
- output.WriteRawTag(16);
- output.WriteBool(NoiseSuppression);
- }
- if (HasAutoGainControl) {
- output.WriteRawTag(24);
- output.WriteBool(AutoGainControl);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -8136,18 +11398,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasEchoCancellation) {
- output.WriteRawTag(8);
- output.WriteBool(EchoCancellation);
- }
- if (HasNoiseSuppression) {
- output.WriteRawTag(16);
- output.WriteBool(NoiseSuppression);
- }
- if (HasAutoGainControl) {
- output.WriteRawTag(24);
- output.WriteBool(AutoGainControl);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -8158,15 +11408,6 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasEchoCancellation) {
- size += 1 + 1;
- }
- if (HasNoiseSuppression) {
- size += 1 + 1;
- }
- if (HasAutoGainControl) {
- size += 1 + 1;
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -8175,19 +11416,10 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioSourceOptions other) {
+ public void MergeFrom(AudioResamplerInfo other) {
if (other == null) {
return;
}
- if (other.HasEchoCancellation) {
- EchoCancellation = other.EchoCancellation;
- }
- if (other.HasNoiseSuppression) {
- NoiseSuppression = other.NoiseSuppression;
- }
- if (other.HasAutoGainControl) {
- AutoGainControl = other.AutoGainControl;
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8207,18 +11439,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 8: {
- EchoCancellation = input.ReadBool();
- break;
- }
- case 16: {
- NoiseSuppression = input.ReadBool();
- break;
- }
- case 24: {
- AutoGainControl = input.ReadBool();
- break;
- }
}
}
#endif
@@ -8238,18 +11458,6 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 8: {
- EchoCancellation = input.ReadBool();
- break;
- }
- case 16: {
- NoiseSuppression = input.ReadBool();
- break;
- }
- case 24: {
- AutoGainControl = input.ReadBool();
- break;
- }
}
}
}
@@ -8258,22 +11466,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioSourceInfo : pb::IMessage
+ public sealed partial class OwnedAudioResampler : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioSourceInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler());
private pb::UnknownFieldSet _unknownFields;
- private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[29]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[40]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8284,7 +11491,7 @@ public sealed partial class AudioSourceInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo() {
+ public OwnedAudioResampler() {
OnConstruction();
}
@@ -8292,61 +11499,59 @@ public AudioSourceInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo(AudioSourceInfo other) : this() {
- _hasBits0 = other._hasBits0;
- type_ = other.type_;
+ public OwnedAudioResampler(OwnedAudioResampler other) : this() {
+ handle_ = other.handle_ != null ? other.handle_.Clone() : null;
+ info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public AudioSourceInfo Clone() {
- return new AudioSourceInfo(this);
+ public OwnedAudioResampler Clone() {
+ return new OwnedAudioResampler(this);
}
- /// Field number for the "type" field.
- public const int TypeFieldNumber = 2;
- private readonly static global::LiveKit.Proto.AudioSourceType TypeDefaultValue = global::LiveKit.Proto.AudioSourceType.AudioSourceNative;
-
- private global::LiveKit.Proto.AudioSourceType type_;
+ /// Field number for the "handle" field.
+ public const int HandleFieldNumber = 1;
+ private global::LiveKit.Proto.FfiOwnedHandle handle_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioSourceType Type {
- get { if ((_hasBits0 & 1) != 0) { return type_; } else { return TypeDefaultValue; } }
+ public global::LiveKit.Proto.FfiOwnedHandle Handle {
+ get { return handle_; }
set {
- _hasBits0 |= 1;
- type_ = value;
+ handle_ = value;
}
}
- /// Gets whether the "type" field is set
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool HasType {
- get { return (_hasBits0 & 1) != 0; }
- }
- /// Clears the value of the "type" field
+
+ /// Field number for the "info" field.
+ public const int InfoFieldNumber = 2;
+ private global::LiveKit.Proto.AudioResamplerInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void ClearType() {
- _hasBits0 &= ~1;
+ public global::LiveKit.Proto.AudioResamplerInfo Info {
+ get { return info_; }
+ set {
+ info_ = value;
+ }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as AudioSourceInfo);
+ return Equals(other as OwnedAudioResampler);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(AudioSourceInfo other) {
+ public bool Equals(OwnedAudioResampler other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
- if (Type != other.Type) return false;
+ if (!object.Equals(Handle, other.Handle)) return false;
+ if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8354,7 +11559,8 @@ public bool Equals(AudioSourceInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
- if (HasType) hash ^= Type.GetHashCode();
+ if (handle_ != null) hash ^= Handle.GetHashCode();
+ if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8373,9 +11579,13 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
- if (HasType) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Type);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
@@ -8387,9 +11597,13 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
- if (HasType) {
- output.WriteRawTag(16);
- output.WriteEnum((int) Type);
+ if (handle_ != null) {
+ output.WriteRawTag(10);
+ output.WriteMessage(Handle);
+ }
+ if (info_ != null) {
+ output.WriteRawTag(18);
+ output.WriteMessage(Info);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
@@ -8401,8 +11615,11 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
- if (HasType) {
- size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
+ if (handle_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
+ }
+ if (info_ != null) {
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
@@ -8412,12 +11629,21 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(AudioSourceInfo other) {
+ public void MergeFrom(OwnedAudioResampler other) {
if (other == null) {
return;
}
- if (other.HasType) {
- Type = other.Type;
+ if (other.handle_ != null) {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ Handle.MergeFrom(other.Handle);
+ }
+ if (other.info_ != null) {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ Info.MergeFrom(other.Info);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8438,8 +11664,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
- case 16: {
- Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -8461,8 +11697,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
- case 16: {
- Type = (global::LiveKit.Proto.AudioSourceType) input.ReadEnum();
+ case 10: {
+ if (handle_ == null) {
+ Handle = new global::LiveKit.Proto.FfiOwnedHandle();
+ }
+ input.ReadMessage(Handle);
+ break;
+ }
+ case 18: {
+ if (info_ == null) {
+ Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ }
+ input.ReadMessage(Info);
break;
}
}
@@ -8473,21 +11719,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedAudioSource : pb::IMessage
+ public sealed partial class OwnedApm : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioSource());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedApm());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[30]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[41]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8498,7 +11744,7 @@ public sealed partial class OwnedAudioSource : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource() {
+ public OwnedApm() {
OnConstruction();
}
@@ -8506,16 +11752,15 @@ public OwnedAudioSource() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource(OwnedAudioSource other) : this() {
+ public OwnedApm(OwnedApm other) : this() {
handle_ = other.handle_ != null ? other.handle_.Clone() : null;
- info_ = other.info_ != null ? other.info_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public OwnedAudioSource Clone() {
- return new OwnedAudioSource(this);
+ public OwnedApm Clone() {
+ return new OwnedApm(this);
}
/// Field number for the "handle" field.
@@ -8530,27 +11775,15 @@ public OwnedAudioSource Clone() {
}
}
- /// Field number for the "info" field.
- public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioSourceInfo info_;
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
- [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioSourceInfo Info {
- get { return info_; }
- set {
- info_ = value;
- }
- }
-
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioSource);
+ return Equals(other as OwnedApm);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioSource other) {
+ public bool Equals(OwnedApm other) {
if (ReferenceEquals(other, null)) {
return false;
}
@@ -8558,7 +11791,6 @@ public bool Equals(OwnedAudioSource other) {
return true;
}
if (!object.Equals(Handle, other.Handle)) return false;
- if (!object.Equals(Info, other.Info)) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -8567,7 +11799,6 @@ public bool Equals(OwnedAudioSource other) {
public override int GetHashCode() {
int hash = 1;
if (handle_ != null) hash ^= Handle.GetHashCode();
- if (info_ != null) hash ^= Info.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -8590,10 +11821,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Handle);
}
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -8608,10 +11835,6 @@ public void WriteTo(pb::CodedOutputStream output) {
output.WriteRawTag(10);
output.WriteMessage(Handle);
}
- if (info_ != null) {
- output.WriteRawTag(18);
- output.WriteMessage(Info);
- }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -8625,9 +11848,6 @@ public int CalculateSize() {
if (handle_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Handle);
}
- if (info_ != null) {
- size += 1 + pb::CodedOutputStream.ComputeMessageSize(Info);
- }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -8636,7 +11856,7 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioSource other) {
+ public void MergeFrom(OwnedApm other) {
if (other == null) {
return;
}
@@ -8646,12 +11866,6 @@ public void MergeFrom(OwnedAudioSource other) {
}
Handle.MergeFrom(other.Handle);
}
- if (other.info_ != null) {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- Info.MergeFrom(other.Info);
- }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -8678,13 +11892,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Handle);
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
#endif
@@ -8711,13 +11918,6 @@ public void MergeFrom(pb::CodedInputStream input) {
input.ReadMessage(Handle);
break;
}
- case 18: {
- if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioSourceInfo();
- }
- input.ReadMessage(Info);
- break;
- }
}
}
}
@@ -8726,21 +11926,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class AudioResamplerInfo : pb::IMessage
+ public sealed partial class SoxResamplerInfo : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AudioResamplerInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoxResamplerInfo());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[31]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[42]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8751,7 +11951,7 @@ public sealed partial class AudioResamplerInfo : pb::IMessage
+ public sealed partial class OwnedSoxResampler : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedAudioResampler());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedSoxResampler());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[32]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[43]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -8912,7 +12112,7 @@ public sealed partial class OwnedAudioResampler : pb::IMessageField number for the "handle" field.
@@ -8946,10 +12146,10 @@ public OwnedAudioResampler Clone() {
/// Field number for the "info" field.
public const int InfoFieldNumber = 2;
- private global::LiveKit.Proto.AudioResamplerInfo info_;
+ private global::LiveKit.Proto.SoxResamplerInfo info_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public global::LiveKit.Proto.AudioResamplerInfo Info {
+ public global::LiveKit.Proto.SoxResamplerInfo Info {
get { return info_; }
set {
info_ = value;
@@ -8959,12 +12159,12 @@ public OwnedAudioResampler Clone() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as OwnedAudioResampler);
+ return Equals(other as OwnedSoxResampler);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(OwnedAudioResampler other) {
+ public bool Equals(OwnedSoxResampler other) {
if (ReferenceEquals(other, null)) {
return false;
}
@@ -9050,7 +12250,7 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(OwnedAudioResampler other) {
+ public void MergeFrom(OwnedSoxResampler other) {
if (other == null) {
return;
}
@@ -9062,7 +12262,7 @@ public void MergeFrom(OwnedAudioResampler other) {
}
if (other.info_ != null) {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
Info.MergeFrom(other.Info);
}
@@ -9094,7 +12294,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 18: {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
input.ReadMessage(Info);
break;
@@ -9127,7 +12327,7 @@ public void MergeFrom(pb::CodedInputStream input) {
}
case 18: {
if (info_ == null) {
- Info = new global::LiveKit.Proto.AudioResamplerInfo();
+ Info = new global::LiveKit.Proto.SoxResamplerInfo();
}
input.ReadMessage(Info);
break;
@@ -9139,22 +12339,25 @@ public void MergeFrom(pb::CodedInputStream input) {
}
+ ///
+ /// Audio Filter Plugin
+ ///
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class SoxResamplerInfo : pb::IMessage
+ public sealed partial class LoadAudioFilterPluginRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoxResamplerInfo());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadAudioFilterPluginRequest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[33]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[44]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -9165,7 +12368,7 @@ public sealed partial class SoxResamplerInfo : pb::IMessage
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo() {
+ public LoadAudioFilterPluginRequest() {
OnConstruction();
}
@@ -9173,31 +12376,109 @@ public SoxResamplerInfo() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo(SoxResamplerInfo other) : this() {
+ public LoadAudioFilterPluginRequest(LoadAudioFilterPluginRequest other) : this() {
+ pluginPath_ = other.pluginPath_;
+ dependencies_ = other.dependencies_.Clone();
+ moduleId_ = other.moduleId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public SoxResamplerInfo Clone() {
- return new SoxResamplerInfo(this);
+ public LoadAudioFilterPluginRequest Clone() {
+ return new LoadAudioFilterPluginRequest(this);
+ }
+
+ /// Field number for the "plugin_path" field.
+ public const int PluginPathFieldNumber = 1;
+ private readonly static string PluginPathDefaultValue = "";
+
+ private string pluginPath_;
+ ///
+ /// path for ffi audio filter plugin
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string PluginPath {
+ get { return pluginPath_ ?? PluginPathDefaultValue; }
+ set {
+ pluginPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "plugin_path" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasPluginPath {
+ get { return pluginPath_ != null; }
+ }
+ /// Clears the value of the "plugin_path" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearPluginPath() {
+ pluginPath_ = null;
+ }
+
+ /// Field number for the "dependencies" field.
+ public const int DependenciesFieldNumber = 2;
+ private static readonly pb::FieldCodec _repeated_dependencies_codec
+ = pb::FieldCodec.ForString(18);
+ private readonly pbc::RepeatedField dependencies_ = new pbc::RepeatedField();
+ ///
+ /// Optional: paths for dependency dylibs
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public pbc::RepeatedField Dependencies {
+ get { return dependencies_; }
+ }
+
+ /// Field number for the "module_id" field.
+ public const int ModuleIdFieldNumber = 3;
+ private readonly static string ModuleIdDefaultValue = "";
+
+ private string moduleId_;
+ ///
+ /// Unique identifier of the plugin
+ ///
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public string ModuleId {
+ get { return moduleId_ ?? ModuleIdDefaultValue; }
+ set {
+ moduleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
+ }
+ }
+ /// Gets whether the "module_id" field is set
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public bool HasModuleId {
+ get { return moduleId_ != null; }
+ }
+ /// Clears the value of the "module_id" field
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
+ [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
+ public void ClearModuleId() {
+ moduleId_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
- return Equals(other as SoxResamplerInfo);
+ return Equals(other as LoadAudioFilterPluginRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public bool Equals(SoxResamplerInfo other) {
+ public bool Equals(LoadAudioFilterPluginRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
+ if (PluginPath != other.PluginPath) return false;
+ if(!dependencies_.Equals(other.dependencies_)) return false;
+ if (ModuleId != other.ModuleId) return false;
return Equals(_unknownFields, other._unknownFields);
}
@@ -9205,6 +12486,9 @@ public bool Equals(SoxResamplerInfo other) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
+ if (HasPluginPath) hash ^= PluginPath.GetHashCode();
+ hash ^= dependencies_.GetHashCode();
+ if (HasModuleId) hash ^= ModuleId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
@@ -9223,6 +12507,15 @@ public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
+ if (HasPluginPath) {
+ output.WriteRawTag(10);
+ output.WriteString(PluginPath);
+ }
+ dependencies_.WriteTo(output, _repeated_dependencies_codec);
+ if (HasModuleId) {
+ output.WriteRawTag(26);
+ output.WriteString(ModuleId);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
@@ -9233,6 +12526,15 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
+ if (HasPluginPath) {
+ output.WriteRawTag(10);
+ output.WriteString(PluginPath);
+ }
+ dependencies_.WriteTo(ref output, _repeated_dependencies_codec);
+ if (HasModuleId) {
+ output.WriteRawTag(26);
+ output.WriteString(ModuleId);
+ }
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
@@ -9243,6 +12545,13 @@ public void WriteTo(pb::CodedOutputStream output) {
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
+ if (HasPluginPath) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(PluginPath);
+ }
+ size += dependencies_.CalculateSize(_repeated_dependencies_codec);
+ if (HasModuleId) {
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(ModuleId);
+ }
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
@@ -9251,10 +12560,17 @@ public int CalculateSize() {
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public void MergeFrom(SoxResamplerInfo other) {
+ public void MergeFrom(LoadAudioFilterPluginRequest other) {
if (other == null) {
return;
}
+ if (other.HasPluginPath) {
+ PluginPath = other.PluginPath;
+ }
+ dependencies_.Add(other.dependencies_);
+ if (other.HasModuleId) {
+ ModuleId = other.ModuleId;
+ }
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
@@ -9274,6 +12590,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
+ case 10: {
+ PluginPath = input.ReadString();
+ break;
+ }
+ case 18: {
+ dependencies_.AddEntriesFrom(input, _repeated_dependencies_codec);
+ break;
+ }
+ case 26: {
+ ModuleId = input.ReadString();
+ break;
+ }
}
}
#endif
@@ -9293,6 +12621,18 @@ public void MergeFrom(pb::CodedInputStream input) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
+ case 10: {
+ PluginPath = input.ReadString();
+ break;
+ }
+ case 18: {
+ dependencies_.AddEntriesFrom(ref input, _repeated_dependencies_codec);
+ break;
+ }
+ case 26: {
+ ModuleId = input.ReadString();
+ break;
+ }
}
}
}
@@ -9301,21 +12641,21 @@ public void MergeFrom(pb::CodedInputStream input) {
}
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
- public sealed partial class OwnedSoxResampler : pb::IMessage
+ public sealed partial class LoadAudioFilterPluginResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
- private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OwnedSoxResampler());
+ private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadAudioFilterPluginResponse());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
- public static pb::MessageParser Parser { get { return _parser; } }
+ public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
- get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[34]; }
+ get { return global::LiveKit.Proto.AudioFrameReflection.Descriptor.MessageTypes[45]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
@@ -9326,7 +12666,7 @@ public sealed partial class OwnedSoxResampler : pb::IMessage