Class NewAudioSourceRequest
Create a new AudioSource
public sealed class NewAudioSourceRequest : Google.Protobuf.IMessage<NewAudioSourceRequest>, Google.Protobuf.IBufferMessage
- Inheritance
-
NewAudioSourceRequest
- Implements
-
IBufferMessage
- Extension Methods
Constructors
NewAudioSourceRequest()
public NewAudioSourceRequest()
NewAudioSourceRequest(NewAudioSourceRequest)
public NewAudioSourceRequest(NewAudioSourceRequest other)
Parameters
otherNewAudioSourceRequest
Fields
NumChannelsFieldNumber
Field number for the "num_channels" field.
public const int NumChannelsFieldNumber = 4
Field Value
OptionsFieldNumber
Field number for the "options" field.
public const int OptionsFieldNumber = 2
Field Value
QueueSizeMsFieldNumber
Field number for the "queue_size_ms" field.
public const int QueueSizeMsFieldNumber = 5
Field Value
SampleRateFieldNumber
Field number for the "sample_rate" field.
public const int SampleRateFieldNumber = 3
Field Value
TypeFieldNumber
Field number for the "type" field.
public const int TypeFieldNumber = 1
Field Value
Properties
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasNumChannels
Gets whether the "num_channels" field is set
public bool HasNumChannels { get; }
Property Value
HasQueueSizeMs
Gets whether the "queue_size_ms" field is set
public bool HasQueueSizeMs { get; }
Property Value
HasSampleRate
Gets whether the "sample_rate" field is set
public bool HasSampleRate { get; }
Property Value
HasType
Gets whether the "type" field is set
public bool HasType { get; }
Property Value
NumChannels
public uint NumChannels { get; set; }
Property Value
Options
public AudioSourceOptions Options { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<NewAudioSourceRequest> Parser { get; }
Property Value
- MessageParser<NewAudioSourceRequest>
QueueSizeMs
public uint QueueSizeMs { get; set; }
Property Value
SampleRate
public uint SampleRate { get; set; }
Property Value
Type
public AudioSourceType Type { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearNumChannels()
Clears the value of the "num_channels" field
public void ClearNumChannels()
ClearQueueSizeMs()
Clears the value of the "queue_size_ms" field
public void ClearQueueSizeMs()
ClearSampleRate()
Clears the value of the "sample_rate" field
public void ClearSampleRate()
ClearType()
Clears the value of the "type" field
public void ClearType()
Clone()
public NewAudioSourceRequest Clone()
Returns
Equals(NewAudioSourceRequest)
public bool Equals(NewAudioSourceRequest other)
Parameters
otherNewAudioSourceRequest
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(NewAudioSourceRequest)
public void MergeFrom(NewAudioSourceRequest other)
Parameters
otherNewAudioSourceRequest
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream