The DXVUMeterNETGDI type exposes the following members.

Constructors

  NameDescription
Public methodDXVUMeterNETGDI
Initializes a new instance of the DXVUMeterNETGDI class

Methods

  NameDescription
Public methodStatic memberDTMFToneToValue
This function converts a tone into its corresponding string value.
Public methodFFTAverageFromFrequency
Returns the average power at a given frequency
Public methodFFTAverageFromIndex
Returns the average power at a given frequency
Public methodFFTIdx2Freq
Returns the frequency at the given FFT index
Public methodFFTIdx2X
Returns the "x" (horizontal) position within the control's graphic area given the FFT index
Public methodFFTPowerFromIndex
Returns the frequency response at a given FFT index
Public methodFreq2FFTIdx
Returns the FFT index for a given frequency
Public methodLicenseControl
This subroutine must be called in order to "register" the control and prevent it from displaying the "DEMO" message.
Public methodNormalizeBuffer
Converts an array of bytes into an array of integers with values ranging from -32768 to 32767 This function is used, internally by the control, but you may also use it when handling the PeakValues event.
Public methodPausePlaying
Pauses the playback
Public methodSetCustomBufferProvider
This is an advanced feature that allows you to use your own buffer provider. When a custom provider is set, DXVUMeterNETGDI will query the provider to obtain the buffer data, instead of using its internal audio monitoring routines. This can be useful if your application is gathering the buffer data from a non standard source or if, for example, you want to plot some data that is not directly provided by a sound card.
Public methodStartMonitoring
Starts monitoring and rendering the monitored audio
Public methodStartPlaying
Starts playing the file passed as a parameter
Public methodStartRecording
Starts recording so the monitored audio will be saved into the file passed as a parameter NOTE: DXVUMeterNETGDI uses the LAME encoder to encode the PCM audio into MP3 format. Please refer to http://www.mp3dev.org/ for more information about the LAME encoder.
Public methodStopMonitoring
Stops monitoring and rendering
Public methodStopPlaying
Stops playing
Public methodStopRecording
Stops recording

Fields

  NameDescription
Public fieldDevices
Collection of devices, that can record audio, currently available on the system

Properties

  NameDescription
Public propertyBitDepth
Sets or returns the quality at which the audio will be monitored
Public propertyChannels
Sets or returns the number of chanels to monitor (1 for mono and 2 for stereo)
Public propertyEnableRendering
Enables or disables the internal rendering engine
Public propertyFFTDetectDTMF
When enabled and when the Style property is set to FFT, the control will raise a DTMFToneDown event when a DTMF tone is detected
Public propertyFFTHistorySize
Sets or returns the size of the data history used to render the FFT
Public propertyFFTHoldMaxPeaks
When enabled, the FFT will hold the highest peaks for a few milliseconds This setting is valid for all FFTPStyle values
Public propertyFFTHoldMinPeaks
When enabled, the FFT will hold the lowest peaks for a few milliseconds This setting is only valid for the FFTStyleConstants.Line FFTPStyle
Public propertyFFTLineChannelMode
Sets or returns the style used to render Fast Fourier Transform when in Line mode
Public propertyFFTPeaksDecayDelay
Controls the decay delay for the peaks
Public propertyFFTPeaksDecaySpeed
Controls the decay speed for the peaks
Public propertyFFTPlotNoiseReduction
This option can be useful to reduce the visual noise that can be generated when rendering a zoomeded plot in log scale This setting is only valid for the FFTStyleConstants.Line and FFTStyleConstants.Filled styles
Public propertyFFTRenderScales
Sets or returns which scales to render while in FFT mode
Public propertyFFTScaleFont
Sets or retrieves the font used in the FFT scale
Public propertyFFTShowDecay
When enabled, the the FFT will leave a small trail behind as it changes This setting is only valid for the FFTStyleConstants.Line FFTPStyle
Public propertyFFTShowMinMaxRange
When enabled, the FFT will display a shaded area showing the valleys and peaks This setting is only valid for the FFTStyleConstants.Line FFTPStyle
Public propertyFFTSize
Sets or returns the size (bands) of the Fast Fourier Transform
Public propertyFFTSmoothing
This option controls the smoothing ammount applied to the FFT waveform This setting is only valid for the FFTStyleConstants.Line and FFTStyleConstants.Filled styles
Public propertyFFTStyle
Sets or returns the every time
Public propertyFFTWindow
Sets or returns the windowing type used to render the Fast Fourier Transform
Public propertyFFTXMax
Sets or returns the maximum frequency to be displayed
Public propertyFFTXMin
Sets or returns the minimum frequency to be displayed
Public propertyFFTXScale
Sets or returns the style used to render the X (time) scale
Public propertyFFTXZoom
When enabled, the rendered FFT range will occupy the whole width of the control
Public propertyFFTXZoomWindowPos
Allows adjusting the starting frequency of the FFT render without affecting the FFTMin and FFTMax properties
Public propertyFFTYScale
Sets or returns the style used to render the Y (level) scale
Public propertyFrequency
Sets or returns the frequency at which the audio will be monitored
Public propertyGreenOff
Sets or returns the inactive low-level color of the monitored audio
Public propertyGreenOn
Sets or returns the active low-level color of the monitored audio
Public propertyLinesThickness
Sets or returns the thickness of the lines used to render the Oscilloscope and the FFT when using the Line style
Public propertyMonitoringState
Returns the monitoring state of the control
Public propertyNumVUs
Sets or returns the number of leds that will be rendered when the Style property is set to DigitalVU
Public propertyOrientation
Sets or returns the orientation of the control when the Style property is set to DigitalVU
Public propertyPlaybackPosition
This property sets or returns the playback position within the file
Public propertyPlaybackPositionTotal
This property returns the total size of the audio data in the file
Public propertyPlaybackState
Returns the playback state of the control
Public propertyPlaybackTime
This property sets or returns the current playback position within the file in hh:mm:ss format
Public propertyPlaybackTimeTotal
Returns the total playback time in hh:mm:ss format
Public propertyPlaybackVolume
This property can be used to adjust the volume of the Playback without affecting the Main/Wave output volumes of the sound card
Public propertyRecordingState
Returns the recording state of the control
Public propertyRecordingTime
Returns the total recording time in hh:mm:ss format
Public propertyRedOff
Sets or returns the inactive high-level color of the monitored audio
Public propertyRedOn
Sets or returns the active high-level color of the monitored audio
Public propertyState
Returns the state of the control
Public propertyStyle
Sets or returns the rendering style that will be used to represent the audio being monitored
Public propertyVersion
Returns the control's version number
Public propertyWAVHistorySize
Sets or returns the size of the input data (audio signal) history used to generate the FFT
Public propertyYellowOff
Sets or returns the inactive middle-level color of the monitored audio
Public propertyYellowOn
Sets or returns the active middle-level color of the monitored audio

Events

  NameDescription
Public eventControlIsReady
Occurs when the control has finished loading and initializing
Public eventDTMFToneDown
Occurs when a DTMF is detected
Public eventDTMFToneUp
Occurs when a previously detected DTMF is lost
Public eventError
Occurs every time the control encounters a problem
Public eventFFTFrame
Occurs every time a new FFT frame is calculated. Note that the event will only be triggered if Style is set to FFT
Public eventMonitoringStateChanged
Occurs every time the monitoring state of the control changes
Public eventPaintGDI
When the Style property is set to UserPaintGDI this event will be fired when the control needs to be painted
Public eventPeakValues
Occurs every time a new chunk of audio is monitored
Public eventPlaybackStateChanged
Occurs every time the playback state of the control changes
Public eventRecordingStateChanged
Occurs every time the recording state of the control changes

See Also