Class AudioCaptureDeviceFormatInfo
Class AudioCaptureDeviceFormatInfo.
Implements
Inherited Members
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 |
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 |
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 |
|
Overrides
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
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
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. |