Table of Contents

Class LVCAudioInput

Namespace
VisioForge.Core.LiveVideoCompositorV2
Assembly
VisioForge.Core.dll

Represents an audio input for the Live Video Compositor that can receive and process audio streams. This class provides functionality to connect audio sources, apply processing blocks, and route audio to the compositor pipeline. Implements the VisioForge.Core.LiveVideoCompositor.LVCInput.

public class LVCAudioInput : LVCInput, IDisposable

Inheritance

Implements

Inherited Members

Constructors

LVCAudioInput(string, LiveVideoCompositor, MediaBlock, AudioInfoX, bool, MediaBlock)

Initializes a new instance of the VisioForge.Core.LiveVideoCompositorV2.LVCAudioInput class.

public LVCAudioInput(string name, LiveVideoCompositor compositor, MediaBlock mainBlock, AudioInfoX info, bool autostart, MediaBlock processingBlock = null)

Parameters

name string

The unique name identifier for this audio input.

compositor LiveVideoCompositor

The live video compositor instance that will manage this input.

mainBlock MediaBlock

The main media block that provides the audio source.

info AudioInfoX

The audio information containing format, channels, and sample rate (required). Its values are not used when compositor is set: the input then carries the compositor's audio format.

autostart bool

If set to true, the input will start automatically when added to the compositor.

processingBlock MediaBlock

Optional processing block for audio effects or transformations.

Exceptions

ArgumentOutOfRangeException

Thrown when info parameter is null.

Properties

Info

Gets the audio information containing format details such as sample rate, channels, and audio format.

public AudioInfoX Info { get; }

Property Value

AudioInfoX

Methods

UpdateInfo(AudioInfoX)

Updates the audio information for this input with new format specifications.

public void UpdateInfo(AudioInfoX info)

Parameters

info AudioInfoX

The new audio information containing updated format, channels, or sample rate.

Remarks

Any format is accepted: the compositor's audio mixer converts every input to its own format. The format is set before the input is added to a compositor; the input's bridge is built at it then.

Exceptions

ArgumentOutOfRangeException

Thrown when info parameter is null.

InvalidOperationException

Thrown when the input was already added to a compositor and info differs from the format it was added with.

See Also