Table of Contents

Method Process

Namespace
Harp.SoundCard
Assembly
Harp.SoundCard.dll

Process(IObservable<byte[]>)

Replaces the specified sound waveform in the SoundCard device with each of the sample buffers in an observable sequence.

public override IObservable<byte[]> Process(IObservable<byte[]> source)

Parameters

source IObservable<byte[]>

A sequence of binary array objects representing all the raw samples of the sound waveform. Continuous streaming is not supported.

Returns

IObservable<byte[]>

An observable sequence that is identical to the source sequence but where there is an additional side effect of replacing the sound waveform of the specified sound with each of the sample buffers in the sequence.

Process(IObservable<Mat>)

Replaces the specified sound waveform in the SoundCard device with each of the sample buffers in an observable sequence.

public IObservable<Mat> Process(IObservable<Mat> source)

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the raw samples of the the sound waveform. Both mono or stereo waveforms are supported, where channels are rows. Continuous streaming is not supported so the full waveform should be sent.

Returns

IObservable<Mat>

An observable sequence that is identical to the source sequence but where there is an additional side effect of replacing the sound waveform of the specified sound with each of the sample buffers in the sequence.