Table of Contents

Class MixerLine

Namespace
NAudio.Mixer
Assembly
NAudio.WinMM.dll

Represents a mixer line (source or destination)

public class MixerLine
Inheritance
MixerLine
Inherited Members

Constructors

MixerLine(nint, int, MixerFlags)

Creates a new mixer destination

public MixerLine(nint mixerHandle, int destinationIndex, MixerFlags mixerHandleType)

Parameters

mixerHandle nint

Mixer Handle

destinationIndex int

Destination Index

mixerHandleType MixerFlags

Mixer Handle Type

MixerLine(nint, int, int, MixerFlags)

Creates a new Mixer Source For a Specified Source

public MixerLine(nint mixerHandle, int destinationIndex, int sourceIndex, MixerFlags mixerHandleType)

Parameters

mixerHandle nint

Mixer Handle

destinationIndex int

Destination Index

sourceIndex int

Source Index

mixerHandleType MixerFlags

Flag indicating the meaning of mixerHandle

Properties

Channels

Number of channels

public int Channels { get; }

Property Value

int

ComponentType

Component Type

public MixerLineComponentType ComponentType { get; }

Property Value

MixerLineComponentType

Controls

Enumerator for the controls on this Mixer Limne

public IEnumerable<MixerControl> Controls { get; }

Property Value

IEnumerable<MixerControl>

ControlsCount

Number of controls

public int ControlsCount { get; }

Property Value

int

IsActive

Is this destination active

public bool IsActive { get; }

Property Value

bool

IsDisconnected

Is this destination disconnected

public bool IsDisconnected { get; }

Property Value

bool

IsSource

Is this destination a source

public bool IsSource { get; }

Property Value

bool

LineId

The line ID

public int LineId { get; }

Property Value

int

Name

Mixer Line Name

public string Name { get; }

Property Value

string

ShortName

Mixer Line short name

public string ShortName { get; }

Property Value

string

SourceCount

Number of sources

public int SourceCount { get; }

Property Value

int

Sources

Enumerator for the sources on this Mixer Line

public IEnumerable<MixerLine> Sources { get; }

Property Value

IEnumerable<MixerLine>

TargetName

The name of the target output device

public string TargetName { get; }

Property Value

string

TypeDescription

Mixer destination type description

public string TypeDescription { get; }

Property Value

string

Methods

GetMixerIdForWaveIn(int)

Creates a new Mixer Source

public static int GetMixerIdForWaveIn(int waveInDevice)

Parameters

waveInDevice int

Wave In Device

Returns

int

GetSource(int)

Gets the specified source

public MixerLine GetSource(int sourceIndex)

Parameters

sourceIndex int

Returns

MixerLine

ToString()

Describes this Mixer Line (for diagnostic purposes)

public override string ToString()

Returns

string