VisioForge (c) 2025

Search Results for

    Class AudioCaptureDeviceFormatInfo

    Class AudioCaptureDeviceFormatInfo.

    Inheritance
    object
    AudioCaptureDeviceFormatInfo
    Implements
    IComparable
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: VisioForge.Core.Types.X.Sources
    Assembly: VisioForge.Core.dll
    Syntax
    public class AudioCaptureDeviceFormatInfo : IComparable

    Constructors

    AudioCaptureDeviceFormatInfo()

    Initializes a new instance of the AudioCaptureDeviceFormatInfo class.

    Declaration
    public AudioCaptureDeviceFormatInfo()

    AudioCaptureDeviceFormatInfo(Structure, bool)

    Initializes a new instance of the AudioCaptureDeviceFormatInfo class.

    Declaration
    public AudioCaptureDeviceFormatInfo(Structure structure, bool parse = true)
    Parameters
    Type Name Description
    Structure structure

    The structure.

    bool parse

    if set to true [parse].

    AudioCaptureDeviceFormatInfo(AudioFormatX, int, int)

    Initializes a new instance of the AudioCaptureDeviceFormatInfo class.

    Declaration
    public AudioCaptureDeviceFormatInfo(AudioFormatX format, int sampleRate, int channels)
    Parameters
    Type Name Description
    AudioFormatX format

    The format.

    int sampleRate

    The sample rate.

    int channels

    The channels.

    Properties

    Channels

    Gets or sets the channels.

    Declaration
    public int[] Channels { get; set; }
    Property Value
    Type Description
    int[]

    Formats

    Gets or sets the format.

    Declaration
    public AudioFormatX[] Formats { get; set; }
    Property Value
    Type Description
    AudioFormatX[]

    The format.

    Name

    Gets the name.

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

    The name.

    SampleRates

    Gets or sets the sample rate.

    Declaration
    public int[] SampleRates { get; set; }
    Property Value
    Type Description
    int[]

    The sample rate.

    Struct

    Gets the structure.

    Declaration
    public Structure Struct { get; }
    Property Value
    Type Description
    Structure

    The structure.

    Methods

    CompareTo(object)

    Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

    Declaration
    public int CompareTo(object obj)
    Parameters
    Type Name Description
    object obj

    An object to compare with this instance.

    Returns
    Type Description
    int

    A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes obj in the sort order. Zero This instance occurs in the same position in the sort order as obj. Greater than zero This instance follows obj in the sort order.

    Equals(object)

    Determines whether the specified object is equal to this instance.

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

    The object to compare with the current object.

    Returns
    Type Description
    bool

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

    Overrides
    object.Equals(object)
    Exceptions
    Type Condition
    NotImplementedException

    GetHashCode()

    Returns a hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    object.GetHashCode()

    Split()

    Splits this instance.

    Declaration
    public AudioCaptureDeviceFormatInfo[] Split()
    Returns
    Type Description
    AudioCaptureDeviceFormatInfo[]

    AudioCaptureDeviceFormatInfo[].

    ToFormat()

    Converts to AudioCaptureDeviceFormat.

    Declaration
    public AudioCaptureDeviceFormat ToFormat()
    Returns
    Type Description
    AudioCaptureDeviceFormat

    VideoCaptureDeviceFormat.

    ToString()

    Returns a string that represents this instance.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents this instance.

    Overrides
    object.ToString()

    Operators

    operator ==(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the == operator.

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

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator >(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the > operator.

    Declaration
    public static bool operator >(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)
    Parameters
    Type Name Description
    AudioCaptureDeviceFormatInfo left

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator >=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the >= operator.

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

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator !=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the != operator.

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

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator <(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the < operator.

    Declaration
    public static bool operator <(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)
    Parameters
    Type Name Description
    AudioCaptureDeviceFormatInfo left

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    operator <=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)

    Implements the <= operator.

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

    The left.

    AudioCaptureDeviceFormatInfo right

    The right.

    Returns
    Type Description
    bool

    The result of the operator.

    Implements

    IComparable