Table of Contents

Method Process

Namespace
Bonsai.Audio
Assembly
Bonsai.Audio.dll

Process(IObservable<Mat>)

Plays an observable sequence of buffered samples to the specified audio device.

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

Parameters

source IObservable<Mat>

A sequence of Mat objects representing the buffered audio samples to queue for playback on the specified audio device.

Returns

IObservable<Mat>

An observable sequence that is identical to the source sequence but where there is an additional side effect of queueing the audio buffers for playback on the specified audio device.

Remarks

This operator only subscribes to the source sequence after initializing the audio context on the specified audio device.

Process(IObservable<Mat>, IObservable<AudioSource>)

Plays an observable sequence of buffered samples to all the specified audio sources.

public IObservable<Mat> Process(IObservable<Mat> dataSource, IObservable<AudioSource> audioSource)

Parameters

dataSource IObservable<Mat>

A sequence of Mat objects representing the buffered audio samples to queue for playback on all the active audio sources.

audioSource IObservable<AudioSource>

A sequence of AudioSource objects on which to queue the buffered audio samples for playback.

Returns

IObservable<Mat>

An observable sequence that is identical to the dataSource sequence but where there is an additional side effect of queueing the audio buffers for playback on all the active audio sources.

Remarks

This operator only subscribes to the dataSource sequence after initializing the audio context on the specified audio device.