C# Class Accord.Audio.Filters.ExtractChannel

Extracts specified channel of a multiple-channel signal and returns it as a mono signal.
Inheritance: BaseFilter
ファイルを表示 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
ExtractChannel ( int channel ) : System

Creates a new ExtractChannel filter.

Protected Methods

Method Description
NewSignal ( int channels, int samples, int rate, SampleFormat dstSampleFormat ) : Signal

Creates a new signal from the given signal parameters. This method can be overridden on child classes to modify how output signals are created.

ProcessFilter ( Signal sourceData, Signal destinationData ) : void

Processes the filter.

Method Details

ExtractChannel() public method

Creates a new ExtractChannel filter.
public ExtractChannel ( int channel ) : System
channel int The index of the channel to be extracted.
return System

NewSignal() protected method

Creates a new signal from the given signal parameters. This method can be overridden on child classes to modify how output signals are created.
protected NewSignal ( int channels, int samples, int rate, SampleFormat dstSampleFormat ) : Signal
channels int
samples int
rate int
dstSampleFormat SampleFormat
return Signal

ProcessFilter() protected method

Processes the filter.
protected ProcessFilter ( Signal sourceData, Signal destinationData ) : void
sourceData Signal
destinationData Signal
return void