Table of Contents

Method CreateSource

Namespace
Bonsai.Mixer
Assembly
Bonsai.Mixer.dll

CreateSource(bool, bool, float)

Creates a new mixer source whose playback queue can be controlled independently of any other source mixed into the output stream.

public MixerSourceContext CreateSource(bool looping, bool playing, float initialGain = 1)

Parameters

looping bool

True to loop the playback queue continuously; otherwise playback stops once all queued buffers have played.

playing bool

True to start the source playing immediately; otherwise the source starts paused.

initialGain float

The initial source gain, where 1 represents the original signal amplitude.

Returns

MixerSourceContext

A new MixerSourceContext used to queue buffers into the source and control its playback.