SetVUMeterSetting
procedure SetVUMeterSetting (ChannelIndex: LongWord_; VUMeterSetting: TVUMeterSetting; Value: NativeInt);
void __fastcall SetVUMeterSetting(LongWord_ ChannelIndex, TVUMeterSetting VUMeterSetting, System::NativeInt Value);
public void SetVUMeterSetting(uint ChannelIndex, TVUMeterSetting VUMeterSetting, IntPtr Value);
Public Sub SetVUMeterSetting(ChannelIndex As UInteger, VUMeterSetting As TVUMeterSetting, Value As IntPtr)
void SetVUMeterSetting (unsigned int ChannelIndex, TVUMeterSetting VUMeterSetting, INT_PTR Value);
Adjusts the VU-meter settings, of the TVUMeterSetting type:
-
vu_Handle: sets the handle of the panel or image control on which the VU-meter is displayed (0 disables the previous handle).
-
vu_WarningPercent: percentage of the level above which vu_WarningColor is used.
-
vu_PeakPercent: percentage of the level above which vu_PeakColor is used.
-
vu_BkgndColor: color of the VU-meter background.
-
vu_NormalColor: color of the normal level (green by default).
-
vu_WarningColor: color of the warning level (above vu_WarningPercent).
-
vu_PeakColor: color of the peak level (above vu_PeakPercent).
-
vu_TickSize: size of the ticks in the bargraph VU-meter.
-
vu_TickInterval: interval between the ticks in the bargraph VU-meter.
-
vu_NeedleThickness: thickness of the needle in the analog VU-meter.
-
vu_OverlayLeft: left position of the VU-meter when overlaid on the video.
-
vu_OverlayTop: top position of the VU-meter when overlaid on the video.
-
vu_OverlayWidth: width of the VU-meter when overlaid on the video.
-
vu_OverlayHeight: height of the VU-meter when overlaid on the video.
-
vu_Transparent: makes the VU-meter background transparent when overlaid on the video frames (0 = disabled, 1 = enabled).
-
vu_FlipVert: flips the VU-meter vertically (0 = disabled, 1 = enabled).
-
vu_FlipHorz: flips the VU-meter horizontally (0 = disabled, 1 = enabled).
-
vu_CustomPercentValue: drives the VU-meter as a custom bargraph: pass (or update in real time) a value in the 0..100 range.
-
vu_LogarithmicScale: uses a logarithmic scale, linear by default (0 = disabled, 1 = enabled).
-
vu_AttackMs: attack (rise) time constant, in milliseconds (default 10); a lower value makes the meter react faster to peaks.
-
vu_ReleaseMs: release (fall) time constant, in milliseconds (default 300); a lower value makes the meter fall back faster.
-
vu_PeakHoldMs: peak-hold duration, in milliseconds (default 800); 0 = no peak hold displayed (this also disables the analog clip LED).
-
vu_OverlayOverVideo: overlays the VU-meter over the video frames, with any meter type (0 = disabled, 1 = enabled).
The Audio levels and VU-meters chapter explains how to use the VU-meters.