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). Its values are not used when
compositoris set: the input then carries the compositor's audio format. 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.
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
infodiffers from the format it was added with.