Alvas.Audio Class Library

SoundLevelMeter Class

Sound level meter is a component that allows audio signal level to be viewed. The sound level meter draws a horizontal line across the middle of the screen from left to right. If the input sound level departs from zero, the line is deflected either upwards or downwards.

For a list of all members of this type, see SoundLevelMeter Members.

System.Object
   MarshalByRefObject
      Component
         Control
            SoundLevelMeter

[Visual Basic]
Public Class SoundLevelMeter
    Inherits 
[C#]
public class SoundLevelMeter : Control

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Example

This example shows simple using of SoundLevelMeter class.

SoundLevelMeter vum = new SoundLevelMeter();
WaveReader wr = new WaveReader(File.OpenRead("in.wav"));
IntPtr format = wr.ReadFormat();
byte[] data = wr.ReadData();
wr.Close();
short[] buffer = AudioCompressionManager.RecalculateData(format, data, vum.ClientRectangle.Width);
vum.Data = buffer;
 

Requirements

Namespace: Alvas.Audio

Assembly: Alvas.Audio (in Alvas.Audio.dll)

See Also

SoundLevelMeter Members | Alvas.Audio Namespace