

										VUBar.OCX
								Copyright (c) 1999 Steve Bralovich
								
WARRANTY:
								
THIS FILE IS DISTRIBUTED AS-IS WITH NO WARRANTY. ALTHOUGH THIS FILE 
HAS BEEN TESTED ON OTHER SYSTEMS AND SHOWS NO DEFECTS, THE OWNER IS 
NOT RESPONSIBLE FOR LOSSES OF ANY KIND ARISING FROM THE USE OF THIS PRODUCT.

COPYRIGHT:

THIS PROGRAM IS DISTRIBUTED AS FREEWARE BUT IS NOT IN THE PUBLIC DOMAIN.
THE AUTHOR RESERVES ALL RIGHTS TO COPYRIGHT.

LICENSE:

YOU MAY USE THIS PROGRAM IN ANY SOFTWARE FREE OF CHARGE AND WITHOUT ROYALTIES
PROVIDED THAT YOU:

1) NOTIFY ME BY SENDING AN EMAIL TO marathon@rogers.wave.ca

2) LIST MY NAME IN THE CREDITS SECTION OF YOUR SOFTWARE

DISTRIBUTION:

THIS PROGRAM MAY BE FREELY COPIED AND DISTRIBUTED BY ANY MEANS
AND NO ROYALTIES ARE DUE IF NO MONEY IS CHARGED FOR THE ACTUAL
SOFTWARE OTHER THAN A NOMINAL DISK COPYING FEE.

COMPATIBILITY:

This control runs under Windows 98 and requires a Sound Blaster
compatible sound card and any programming language that supports
ActiveX. (eg., VB, Delphi, Visual C++, Director, etc.,)

INSTRUCTIONS:

The VUBar.OCX is an ActiveX control that reads the sound volume level
of any sound blaster compatible sound card with a meter port. It should 
be system independent, although all possible combinations have not been 
tested.

It can be used in any application that requires a sound level measurement.

The sound level is displayed on a horizontal bar with marked graduations.

You may change the meter channel to Left, Right or Mono settings.

You must first copy the file to your windows\system directory and
use the regsvr32.exe utility found in the same directory.

To register the ocx type:

"regsvr32 vubar.ocx"

To use it simply, drop the control onto a blank form and adjust
the channel settings. That's it.

Additionally, you may read the actual sound level reading and use it to 
control other functions or simply display the data.

For instance, in Visual Basic, to display the actual reading on a label
named Label1 you would double-click on the control and
enter the following code into the "VUReading()" event 
handler:

Private Sub VUBarMeter1_VUReading()   
VuLevel = VUBarMeter1.Value       
If VuLevel < 0 Then VuLevel = 0   
Label1.Caption = VuLevel
End Sub

In this example, VuLevel is a variable which is set
to the value of the VUBarMeter1.Value property.

The next line sets the reading to 0 if it falls below 
0. This is because the actual reading falls between 
-32767 and +32767. We want our meter to ignore the
negative readings in this case, so we add this line.

The next line sets the Label1.Caption property to 
the VuLevel variable.

And that's it. Fast and simple.

SUPPORT:

If you are having problems using this OCX, please
contact me by email at marathon@rogers.wave.ca

I'll try my best to help you, but being free means
that I am under no obligation to do so and I make 
no warranties as to the results you achieve.

OTHER:

If you like this OCX and find it useful, I have 2 other
versions of this ActiveX control.

They are a vertical meter and a needle style VU meter.

They sell for $5.00 US. each or $8.00 for the pair.
They are identical to use and just as simple and fast.

To purchase them simply email me at marathon@rogers.wave.ca
and let me know which one you want.

If you have custom needs, I can make sound level meters
to your specifications for as low as $20 U.S.




