Table of Contents

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>
IBufferMessage
IMessage
Inherited Members

Constructors

AudioFormat()

public AudioFormat()

AudioFormat(AudioFormat)

public AudioFormat(AudioFormat other)

Parameters

other AudioFormat

Fields

AudioChannelLayoutDescriptionFieldNumber

Field number for the "audioChannelLayoutDescription" field.

public const int AudioChannelLayoutDescriptionFieldNumber = 9

Field Value

int

BitDepthFieldNumber

Field number for the "bitDepth" field.

public const int BitDepthFieldNumber = 4

Field Value

int

BitrateFieldNumber

Field number for the "bitrate" field.

public const int BitrateFieldNumber = 2

Field Value

int

ChannelLayoutFieldNumber

Field number for the "channelLayout" field.

public const int ChannelLayoutFieldNumber = 8

Field Value

int

CodecFieldNumber

Field number for the "codec" field.

public const int CodecFieldNumber = 5

Field Value

int

GroupIDFieldNumber

Field number for the "groupID" field.

public const int GroupIDFieldNumber = 10

Field Value

int

MultiChannelFieldNumber

Field number for the "multiChannel" field.

public const int MultiChannelFieldNumber = 7

Field Value

int

SampleRateFieldNumber

Field number for the "sampleRate" field.

public const int SampleRateFieldNumber = 3

Field Value

int

SpatializedFieldNumber

Field number for the "spatialized" field.

public const int SpatializedFieldNumber = 6

Field Value

int

StableVariantIDFieldNumber

Field number for the "stableVariantID" field.

public const int StableVariantIDFieldNumber = 11

Field Value

int

TierFieldNumber

Field number for the "tier" field.

public const int TierFieldNumber = 1

Field Value

int

Properties

AudioChannelLayoutDescription

public string AudioChannelLayoutDescription { get; set; }

Property Value

string

BitDepth

public long BitDepth { get; set; }

Property Value

long

Bitrate

public long Bitrate { get; set; }

Property Value

long

ChannelLayout

public uint ChannelLayout { get; set; }

Property Value

uint

Codec

public uint Codec { get; set; }

Property Value

uint

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

GroupID

public string GroupID { get; set; }

Property Value

string

HasAudioChannelLayoutDescription

Gets whether the "audioChannelLayoutDescription" field is set

public bool HasAudioChannelLayoutDescription { get; }

Property Value

bool

HasBitDepth

Gets whether the "bitDepth" field is set

public bool HasBitDepth { get; }

Property Value

bool

HasBitrate

Gets whether the "bitrate" field is set

public bool HasBitrate { get; }

Property Value

bool

HasChannelLayout

Gets whether the "channelLayout" field is set

public bool HasChannelLayout { get; }

Property Value

bool

HasCodec

Gets whether the "codec" field is set

public bool HasCodec { get; }

Property Value

bool

HasGroupID

Gets whether the "groupID" field is set

public bool HasGroupID { get; }

Property Value

bool

HasMultiChannel

Gets whether the "multiChannel" field is set

public bool HasMultiChannel { get; }

Property Value

bool

HasSampleRate

Gets whether the "sampleRate" field is set

public bool HasSampleRate { get; }

Property Value

bool

HasSpatialized

Gets whether the "spatialized" field is set

public bool HasSpatialized { get; }

Property Value

bool

HasStableVariantID

Gets whether the "stableVariantID" field is set

public bool HasStableVariantID { get; }

Property Value

bool

HasTier

Gets whether the "tier" field is set

public bool HasTier { get; }

Property Value

bool

MultiChannel

public bool MultiChannel { get; set; }

Property Value

bool

Parser

public static MessageParser<AudioFormat> Parser { get; }

Property Value

MessageParser<AudioFormat>

SampleRate

public long SampleRate { get; set; }

Property Value

long

Spatialized

public bool Spatialized { get; set; }

Property Value

bool

StableVariantID

public string StableVariantID { get; set; }

Property Value

string

Tier

public AudioTier.Types.Enum Tier { get; set; }

Property Value

AudioTier.Types.Enum

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

other AudioFormat

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

other AudioFormat

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

input CodedInputStream

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

output CodedOutputStream

Coded output stream to write the data to. Must not be null.