Share via


MediaSourceAudioInputNode.ConsumeInput Property

Definition

Gets or sets a value indicating if the MediaSource input node consumes input.

public:
 property bool ConsumeInput { bool get(); void set(bool value); };
bool ConsumeInput();

void ConsumeInput(bool value);
public bool ConsumeInput { get; set; }
var boolean = mediaSourceAudioInputNode.consumeInput;
mediaSourceAudioInputNode.consumeInput = boolean;
Public Property ConsumeInput As Boolean

Property Value

Boolean

bool

True if the node consumes input; otherwise, false.

Implements

Remarks

You can stop all audio processing of a node by calling Stop. Set ConsumeInput to false to mute the input of the node instead. This can be useful in scenarios such as when the node has an effect with a decay applied, such as delay or reverb. Setting ConsumeInput to false will stop the node from consuming audio data while allowing effects to continue processing.

Applies to