Class AudioCaptureDeviceFormatInfo
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Class AudioCaptureDeviceFormatInfo.
public class AudioCaptureDeviceFormatInfo : IComparableInheritance
Implements
Inherited Members
Constructors
AudioCaptureDeviceFormatInfo()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceFormatInfo class.
public AudioCaptureDeviceFormatInfo()AudioCaptureDeviceFormatInfo(Structure, bool)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceFormatInfo class.
public AudioCaptureDeviceFormatInfo(Structure structure, bool parse = true)Parameters
structureStructure-
The structure.
parsebool-
if set to
true[parse].
AudioCaptureDeviceFormatInfo(AudioFormatX, int, int)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceFormatInfo class.
public AudioCaptureDeviceFormatInfo(AudioFormatX format, int sampleRate, int channels)Parameters
formatAudioFormatX-
The format.
sampleRateint-
The sample rate.
channelsint-
The channels.
Properties
Channels
Gets or sets the channels.
public int[] Channels { get; set; }Property Value
- int[]
Formats
Gets or sets the format.
public AudioFormatX[] Formats { get; set; }Property Value
Name
Gets the name.
public string Name { get; }Property Value
SampleRates
Gets or sets the sample rate.
public int[] SampleRates { get; set; }Property Value
- int[]
Struct
Gets the structure.
public Structure Struct { get; }Property Value
- 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.
public int CompareTo(object obj)Parameters
objobject-
An object to compare with this instance.
Returns
- 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
objin the sort order. Zero This instance occurs in the same position in the sort order asobj. Greater than zero This instance followsobjin the sort order.
Equals(object)
Determines whether the specified Object is equal to this instance.
public override bool Equals(object obj)Parameters
objobject-
The object to compare with the current object.
Returns
Exceptions
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()Returns
- int
-
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Split()
Splits this instance.
public AudioCaptureDeviceFormatInfo[] Split()Returns
- AudioCaptureDeviceFormatInfo[]
-
AudioCaptureDeviceFormatInfo[].
ToFormat()
Converts to AudioCaptureDeviceFormat.
public AudioCaptureDeviceFormat ToFormat()Returns
- AudioCaptureDeviceFormat
-
VideoCaptureDeviceFormat.
ToString()
Returns a String that represents this instance.
public override string ToString()Returns
Operators
operator ==(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the == operator.
public static bool operator ==(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator >(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the > operator.
public static bool operator >(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator >=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the >= operator.
public static bool operator >=(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator !=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the != operator.
public static bool operator !=(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator <(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the < operator.
public static bool operator <(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.
operator <=(AudioCaptureDeviceFormatInfo, AudioCaptureDeviceFormatInfo)
Implements the <= operator.
public static bool operator <=(AudioCaptureDeviceFormatInfo left, AudioCaptureDeviceFormatInfo right)Parameters
leftAudioCaptureDeviceFormatInfo-
The left.
rightAudioCaptureDeviceFormatInfo-
The right.
Returns
- bool
-
The result of the operator.