Methods (4) Properties (1)
Namespace: CSCore.DSP

Syntax

public class DmoChannelResampler : DmoResampler

Base Type

Summary

Resampler based on the DmoResampler which can change the number of channels based on a ChannelMatrix. Supported since Windows XP.

Uses

Methods

DmoChannelResampler(IWaveSource source, ChannelMatrix channelMatrix)

Initializes a new instance of the DmoChannelResampler class.

public void DmoChannelResampler(IWaveSource source, ChannelMatrix channelMatrix)

Parameters

source

IWaveSource

Underlying source which has to get resampled.

channelMatrix

ChannelMatrix

ChannelMatrix which defines how to map each channel.

public void DmoChannelResampler(IWaveSource source, ChannelMatrix channelMatrix, WaveFormat outputFormat)

Parameters

source

IWaveSource

Underlying source which has to get resampled.

channelMatrix

ChannelMatrix

ChannelMatrix which defines how to map each channel.

outputFormat

WaveFormat

Waveformat, which specifies the new format. Note, that by far not all formats are supported.

Exceptions

System.ArgumentNullException

source or channelMatrix or outputFormat

System.ArgumentException

The number of channels of the source has to be equal to the number of input channels specified by the channelMatrix.

public void DmoChannelResampler(IWaveSource source, ChannelMatrix channelMatrix, Int32 destinationSampleRate)

Parameters

source

IWaveSource

Underlying source which has to get resampled.

channelMatrix

ChannelMatrix

ChannelMatrix which defines how to map each channel.

destinationSampleRate

Int32

The destination sample rate.

CommitChannelMatrixChanges()

Commits all channel-matrix-changes.

public void CommitChannelMatrixChanges()

Properties

ChannelMatrix

Gets the channel matrix.

public ChannelMatrix ChannelMatrix { get; }

Remarks

If any changes to the channel matrix are made, use the CommitChannelMatrixChanges method to commit them.