docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AudioCodecInfo

    Represents information about an audio codec, including its MIME type, SDP format parameters, channel count, and sample rate.

    Inheritance
    object
    AudioCodecInfo
    Implements
    IEquatable<AudioCodecInfo>
    Namespace: Unity.RenderStreaming
    Assembly: Unity.RenderStreaming.dll
    Syntax
    [Serializable]
    public class AudioCodecInfo : IEquatable<AudioCodecInfo>

    Properties

    channelCount

    Gets the number of audio channels.

    Declaration
    public int channelCount { get; }
    Property Value
    Type Description
    int

    mimeType

    Gets the MIME type of the audio codec.

    Declaration
    public string mimeType { get; }
    Property Value
    Type Description
    string

    name

    Gets the name of the audio codec.

    Declaration
    public string name { get; }
    Property Value
    Type Description
    string

    sampleRate

    Gets the sample rate of the audio.

    Declaration
    public int sampleRate { get; }
    Property Value
    Type Description
    int

    sdpFmtpLine

    Gets the SDP format parameters line.

    Declaration
    public string sdpFmtpLine { get; }
    Property Value
    Type Description
    string

    Methods

    Equals(object)

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

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current AudioCodecInfo.

    Returns
    Type Description
    bool

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

    Overrides
    object.Equals(object)

    Equals(AudioCodecInfo)

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

    Declaration
    public bool Equals(AudioCodecInfo other)
    Parameters
    Type Name Description
    AudioCodecInfo other

    The AudioCodecInfo to compare with the current AudioCodecInfo.

    Returns
    Type Description
    bool

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

    Examples
    Debug.Log(audioStreamReceiver1.codec.Equals(audioStreamReceiver2.codec));

    GetHashCode()

    Returns a hash code for the AudioCodecInfo.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current AudioCodecInfo.

    Overrides
    object.GetHashCode()

    Operators

    operator ==(AudioCodecInfo, AudioCodecInfo)

    Determines whether two specified instances of AudioCodecInfo are equal.

    Declaration
    public static bool operator ==(AudioCodecInfo left, AudioCodecInfo right)
    Parameters
    Type Name Description
    AudioCodecInfo left

    The first AudioCodecInfo to compare.

    AudioCodecInfo right

    The second AudioCodecInfo to compare.

    Returns
    Type Description
    bool

    true if the two AudioCodecInfo instances are equal; otherwise, false.

    operator !=(AudioCodecInfo, AudioCodecInfo)

    Determines whether two specified instances of AudioCodecInfo are not equal.

    Declaration
    public static bool operator !=(AudioCodecInfo left, AudioCodecInfo right)
    Parameters
    Type Name Description
    AudioCodecInfo left

    The first AudioCodecInfo to compare.

    AudioCodecInfo right

    The second AudioCodecInfo to compare.

    Returns
    Type Description
    bool

    true if the two AudioCodecInfo instances are not equal; otherwise, false.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)