Class LVCAudioInput
- 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, IDisposableInheritance
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
namestring-
The unique name identifier for this audio input.
compositorLiveVideoCompositor-
The live video compositor instance that will manage this input.
mainBlockMediaBlock-
The main media block that provides the audio source.
infoAudioInfoX-
The audio information containing format, channels, and sample rate (required).
autostartbool-
If set to
true, the input will start automatically when added to the compositor. processingBlockMediaBlock-
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
Methods
UpdateInfo(AudioInfoX)
Updates the audio information for this input with new format specifications.
public void UpdateInfo(AudioInfoX info)Parameters
infoAudioInfoX-
The new audio information containing updated format, channels, or sample rate.
Exceptions
- ArgumentOutOfRangeException
-
Thrown when info parameter is null.