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
PlatformAudioHandleFieldNumber
Field number for the "platform_audio_handle" field.
public const int PlatformAudioHandleFieldNumber = 6
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
HasPlatformAudioHandle
Gets whether the "platform_audio_handle" field is set
public bool HasPlatformAudioHandle { 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
Number of audio channels. Optional - defaults to 1 (mono) if not specified. For AudioSourcePlatform: ignored, ADM uses hardware native channels. For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly.
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>
PlatformAudioHandle
For AudioSourcePlatform: the PlatformAudio handle to configure audio processing on. If provided with options, audio processing will be configured on the PlatformAudio.
public ulong PlatformAudioHandle { get; set; }
Property Value
QueueSizeMs
public uint QueueSizeMs { get; set; }
Property Value
SampleRate
Sample rate in Hz. Optional - defaults to 48000 if not specified. For AudioSourcePlatform: ignored, ADM uses hardware native sample rate. For AudioSourceNative with queue_size_ms=0 (fast path): ignored, frame values used directly.
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()
ClearPlatformAudioHandle()
Clears the value of the "platform_audio_handle" field
public void ClearPlatformAudioHandle()
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