Copyright © 2005-2019 MultiMedia Soft

VUMeter class

Previous pageReturn to chapter overviewNext page

The VUMeter class, accessible through the control's DisplayVUMeter property, contains information needed to render the embedded VU-Meter visual feedback.

 

It can be used at Run-time in order to create the embedded VU-Meter and to change its graphic settings. For details about using Visual Feedbacks refer to the How to use the embedded Visual Feedbacks section

 

The VUMeter class is implemented through the following methods and properties:

 

Methods

 

Create

CreateNew

KeepCountOfVolume

Resize

Show

SetHwnd

SetBackPictureFromFile

SetBackPictureFromHandle

 

Properties

 

BandType

HasPeaks

ColorBands

ColorPeaks

ColorBackground

ZoomPerc

 

The following code snippets show how to create and change this object in your code. These examples assume that you have placed a control named audioDjStudio1 on a form and that you want to change a couple of graphic settings (Bands and Background colors).

 

Visual Basic.NET

 

Here follows the code needed to perform the requested operations

 

' create the VU-meter on player 0 over an existing control

AudioDjStudio1.DisplayVUMeter.Create(0, PictureBox1.Handle)

 

' set the blue color for VU-meter bands of player 0

AudioDjStudio1.DisplayVUMeter.set_ColorBands(0, Color.Blue)

 

' set the white color for VU-meter background of player 0

AudioDjStudio1.DisplayVUMeter.set_ColorBackground(0, Color.White)

 

Visual C#.NET

 

Here follows the code needed to perform the requested operations

 

// create the VU-meter on player 0 over an existing control

audioDjStudio1.DisplayVUMeter.Create(0, pictureBox1.Handle);

 

// set the blue color for VU-meter bands of player 0

audioDjStudio1.DisplayVUMeter.set_ColorBands (0, Color.Blue);

 

// set the white color for VU-meter background of player 0

audioDjStudio1.DisplayVUMeter.set_ColorBackground(0, Color.White);