Table of Contents

Class MixerControl

Namespace
NAudio.Mixer
Assembly
NAudio.WinMM.dll

Represents a mixer control

public abstract class MixerControl
Inheritance
MixerControl
Derived
Inherited Members

Fields

mixerHandle

Mixer Handle

protected nint mixerHandle

Field Value

nint

mixerHandleType

Mixer Handle Type

protected MixerFlags mixerHandleType

Field Value

MixerFlags

nChannels

Number of Channels

protected int nChannels

Field Value

int

Properties

ControlType

Mixer control type

public MixerControlType ControlType { get; }

Property Value

MixerControlType

IsBoolean

Is this a boolean control

public bool IsBoolean { get; }

Property Value

bool

IsCustom

True if this is a custom control

public bool IsCustom { get; }

Property Value

bool

IsListText

True if this is a list text control

public bool IsListText { get; }

Property Value

bool

IsSigned

True if this is a signed control

public bool IsSigned { get; }

Property Value

bool

IsUnsigned

True if this is an unsigned control

public bool IsUnsigned { get; }

Property Value

bool

Name

Mixer control name

public string Name { get; }

Property Value

string

Methods

GetControlDetails()

Gets the control details

protected void GetControlDetails()

GetDetails(nint)

Gets the control details

protected abstract void GetDetails(nint pDetails)

Parameters

pDetails nint

GetMixerControl(nint, int, int, int, MixerFlags)

Gets a specified Mixer Control

public static MixerControl GetMixerControl(nint mixerHandle, int nLineId, int controlId, int nChannels, MixerFlags mixerFlags)

Parameters

mixerHandle nint

Mixer Handle

nLineId int

Line ID

controlId int

Control ID

nChannels int

Number of Channels

mixerFlags MixerFlags

Flags to use (indicates the meaning of mixerHandle)

Returns

MixerControl

GetMixerControls(nint, MixerLine, MixerFlags)

Gets all the mixer controls

public static IList<MixerControl> GetMixerControls(nint mixerHandle, MixerLine mixerLine, MixerFlags mixerHandleType)

Parameters

mixerHandle nint

Mixer Handle

mixerLine MixerLine

Mixer Line

mixerHandleType MixerFlags

Mixer Handle Type

Returns

IList<MixerControl>

ToString()

String representation for debug purposes

public override string ToString()

Returns

string