Class VUMeterBlock
- Assembly
- VisioForge.Core.dll
VU (Volume Unit) meter block for real-time audio level monitoring and analysis. This block provides continuous audio level measurement and peak detection for stereo and mono audio streams. Features real-time callback events with detailed level information including RMS, peak, and decay values for both left and right channels. Essential for audio monitoring, level control, automatic gain control, broadcast applications, and professional audio production environments requiring precise level monitoring. Implements the VisioForge.Core.MediaBlocks.MediaBlock. Implements the VisioForge.Core.MediaBlocks.IMediaBlockInternals. Implements the IDisposable.
public class VUMeterBlock : MediaBlock, IMediaBlock, IDisposable, IMediaBlockInternalsInheritance
Implements
Inherited Members
Extension Methods
Constructors
VUMeterBlock()
Initializes a new instance of the VisioForge.Core.MediaBlocks.AudioProcessing.VUMeterBlock class with default VU meter monitoring settings.
public VUMeterBlock()Properties
Input
Gets the input.
public override MediaBlockPad Input { get; }Property Value
Inputs
Gets the inputs.
public override MediaBlockPad[] Inputs { get; }Property Value
Output
Gets the output.
public override MediaBlockPad Output { get; }Property Value
Outputs
Gets the outputs.
public override MediaBlockPad[] Outputs { get; }Property Value
Type
Gets the type.
public override MediaBlockType Type { get; }Property Value
Methods
Build()
Builds this instance.
public override bool Build()Returns
- bool
-
trueif successfull,falseotherwise.
CleanUp()
Cleans up.
public void CleanUp()Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
GetCore()
Gets core.
public BaseElement GetCore()Returns
- BaseElement
-
VisioForge.Core.GStreamer.Base.BaseElement.
GetElement()
Gets the element.
public Element GetElement()Returns
- Element
-
Gst.Element.
IsAvailable()
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
public static bool IsAvailable()Returns
- bool
-
trueif this media block is available; otherwise,false.
IMediaBlockInternals.SetContext(MediaBlocksPipeline)
Sets the context.
void IMediaBlockInternals.SetContext(MediaBlocksPipeline pipeline)Parameters
pipelineMediaBlocksPipeline-
The pipeline.
OnAudioVUMeter
This event occurs whenever new audio VU meter data is received. Provides real-time audio level information including RMS, peak, and decay values for continuous audio monitoring and level control applications.
public event EventHandler<VUMeterXEventArgs> OnAudioVUMeter