Table of Contents

Class AudioCaptureMode

Namespace
VAST.Capture
Assembly
VAST.Common.dll

Audio capture mode

public class AudioCaptureMode : IEquatable<AudioCaptureMode>, IComparable<AudioCaptureMode>
Inheritance
AudioCaptureMode
Implements
Inherited Members

Constructors

AudioCaptureMode()

public AudioCaptureMode()

Properties

Channels

Gets or sets audio channel number

public int Channels { get; set; }

Property Value

int

SampleFormat

Gets or sets sample format. Could be Unknown which means sample format is uncertain

public SampleFormat SampleFormat { get; set; }

Property Value

SampleFormat

SampleRate

Gets or sets audio sampling rate

public int SampleRate { get; set; }

Property Value

int

Timescale

Gets or sets source timescale.

public Rational Timescale { get; set; }

Property Value

Rational

Methods

Clone()

Creates a copy of this capture mode.

public AudioCaptureMode Clone()

Returns

AudioCaptureMode

A new AudioCaptureMode instance with copied values.

CompareTo(AudioCaptureMode)

Compares two objects of current class

public int CompareTo(AudioCaptureMode other)

Parameters

other AudioCaptureMode

Object to compare current instance to

Returns

int

-1 if current object is less than another, 0 if objects are equal, 1 if current object is bigger than another

Equals(object)

Compares two objects of current class

public override bool Equals(object obj)

Parameters

obj object

Object to compare current instance to

Returns

bool

True if objects are equal, false otherwise

Equals(AudioCaptureMode)

Compares two objects of current class

public bool Equals(AudioCaptureMode other)

Parameters

other AudioCaptureMode

Object to compare current instance to

Returns

bool

True if objects are equal, false otherwise

GetHashCode()

Gets hash code of current object

public override int GetHashCode()

Returns

int

Hash code

ToString()

Serializes object to a human readable string

public override string ToString()

Returns

string

String representation of the current object

Operators

operator ==(AudioCaptureMode, AudioCaptureMode)

Determines whether two capture modes are equal.

public static bool operator ==(AudioCaptureMode left, AudioCaptureMode right)

Parameters

left AudioCaptureMode

The first capture mode.

right AudioCaptureMode

The second capture mode.

Returns

bool

True if both capture modes are equal; otherwise, false.

operator !=(AudioCaptureMode, AudioCaptureMode)

Determines whether two capture modes are not equal.

public static bool operator !=(AudioCaptureMode left, AudioCaptureMode right)

Parameters

left AudioCaptureMode

The first capture mode.

right AudioCaptureMode

The second capture mode.

Returns

bool

True if the capture modes are not equal; otherwise, false.