Class AudioFormat
- Namespace
- AppleTvControlLibrary.Mrp.Protobuf
- Assembly
- AppleTvControlLibrary.Mrp.dll
public sealed class AudioFormat : IMessage<AudioFormat>, IEquatable<AudioFormat>, IDeepCloneable<AudioFormat>, IBufferMessage, IMessage
- Inheritance
-
AudioFormat
- Implements
-
IMessage<AudioFormat>IDeepCloneable<AudioFormat>IBufferMessageIMessage
- Inherited Members
Constructors
AudioFormat()
public AudioFormat()
AudioFormat(AudioFormat)
public AudioFormat(AudioFormat other)
Parameters
otherAudioFormat
Fields
AudioChannelLayoutDescriptionFieldNumber
Field number for the "audioChannelLayoutDescription" field.
public const int AudioChannelLayoutDescriptionFieldNumber = 9
Field Value
BitDepthFieldNumber
Field number for the "bitDepth" field.
public const int BitDepthFieldNumber = 4
Field Value
BitrateFieldNumber
Field number for the "bitrate" field.
public const int BitrateFieldNumber = 2
Field Value
ChannelLayoutFieldNumber
Field number for the "channelLayout" field.
public const int ChannelLayoutFieldNumber = 8
Field Value
CodecFieldNumber
Field number for the "codec" field.
public const int CodecFieldNumber = 5
Field Value
GroupIDFieldNumber
Field number for the "groupID" field.
public const int GroupIDFieldNumber = 10
Field Value
MultiChannelFieldNumber
Field number for the "multiChannel" field.
public const int MultiChannelFieldNumber = 7
Field Value
SampleRateFieldNumber
Field number for the "sampleRate" field.
public const int SampleRateFieldNumber = 3
Field Value
SpatializedFieldNumber
Field number for the "spatialized" field.
public const int SpatializedFieldNumber = 6
Field Value
StableVariantIDFieldNumber
Field number for the "stableVariantID" field.
public const int StableVariantIDFieldNumber = 11
Field Value
TierFieldNumber
Field number for the "tier" field.
public const int TierFieldNumber = 1
Field Value
Properties
AudioChannelLayoutDescription
public string AudioChannelLayoutDescription { get; set; }
Property Value
BitDepth
public long BitDepth { get; set; }
Property Value
Bitrate
public long Bitrate { get; set; }
Property Value
ChannelLayout
public uint ChannelLayout { get; set; }
Property Value
Codec
public uint Codec { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
GroupID
public string GroupID { get; set; }
Property Value
HasAudioChannelLayoutDescription
Gets whether the "audioChannelLayoutDescription" field is set
public bool HasAudioChannelLayoutDescription { get; }
Property Value
HasBitDepth
Gets whether the "bitDepth" field is set
public bool HasBitDepth { get; }
Property Value
HasBitrate
Gets whether the "bitrate" field is set
public bool HasBitrate { get; }
Property Value
HasChannelLayout
Gets whether the "channelLayout" field is set
public bool HasChannelLayout { get; }
Property Value
HasCodec
Gets whether the "codec" field is set
public bool HasCodec { get; }
Property Value
HasGroupID
Gets whether the "groupID" field is set
public bool HasGroupID { get; }
Property Value
HasMultiChannel
Gets whether the "multiChannel" field is set
public bool HasMultiChannel { get; }
Property Value
HasSampleRate
Gets whether the "sampleRate" field is set
public bool HasSampleRate { get; }
Property Value
HasSpatialized
Gets whether the "spatialized" field is set
public bool HasSpatialized { get; }
Property Value
HasStableVariantID
Gets whether the "stableVariantID" field is set
public bool HasStableVariantID { get; }
Property Value
HasTier
Gets whether the "tier" field is set
public bool HasTier { get; }
Property Value
MultiChannel
public bool MultiChannel { get; set; }
Property Value
Parser
public static MessageParser<AudioFormat> Parser { get; }
Property Value
- MessageParser<AudioFormat>
SampleRate
public long SampleRate { get; set; }
Property Value
Spatialized
public bool Spatialized { get; set; }
Property Value
StableVariantID
public string StableVariantID { get; set; }
Property Value
Tier
public AudioTier.Types.Enum Tier { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearAudioChannelLayoutDescription()
Clears the value of the "audioChannelLayoutDescription" field
public void ClearAudioChannelLayoutDescription()
ClearBitDepth()
Clears the value of the "bitDepth" field
public void ClearBitDepth()
ClearBitrate()
Clears the value of the "bitrate" field
public void ClearBitrate()
ClearChannelLayout()
Clears the value of the "channelLayout" field
public void ClearChannelLayout()
ClearCodec()
Clears the value of the "codec" field
public void ClearCodec()
ClearGroupID()
Clears the value of the "groupID" field
public void ClearGroupID()
ClearMultiChannel()
Clears the value of the "multiChannel" field
public void ClearMultiChannel()
ClearSampleRate()
Clears the value of the "sampleRate" field
public void ClearSampleRate()
ClearSpatialized()
Clears the value of the "spatialized" field
public void ClearSpatialized()
ClearStableVariantID()
Clears the value of the "stableVariantID" field
public void ClearStableVariantID()
ClearTier()
Clears the value of the "tier" field
public void ClearTier()
Clone()
Creates a deep clone of this object.
public AudioFormat Clone()
Returns
- AudioFormat
A deep clone of this object.
Equals(AudioFormat)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(AudioFormat other)
Parameters
otherAudioFormatAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(AudioFormat)
Merges the given message into this one.
public void MergeFrom(AudioFormat other)
Parameters
otherAudioFormat
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.