by Norm Cook (11 Submissions)
Category: Sound/MP3
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (10 Votes)
Here's one for those of you who like to
write music apps, players, etc. A VU
meter on your app makes it a little more
professional looking at least IMO. The
class used to get the Left/Right volume
levels was written by Arne Elster (rm_code)
so I take no credit for that. Also the
gradient functions were written by another
programmer, don't know who, but it is a
good one. Take note, this app won't show
you much unless you have sounds coming from
the soundcard, e.g. Winamp, WMP, Mike, CD
or whatever. If you have difficulty getting
sound levels, try this. With the demo running,
right click on your Volume icon & select Open
Volume Control. Or try Control Panel|Sounds|
Volume tab then Device Volume, click Advanced.
If neither of those are available, try to
run the app directly. On my machine it
is C:\WINDOWS\system32\sndvol32.exe. With
that open, select Options|Properties and
select the Recording option button & click
OK. Now you have the sliders for the various
record options. Try selecting different record
devices and changing the volume levels for these
(note you have to click the Select checkbox below
the slider for it to have any effect) and see
if you get results in the demo app.
Download VU Project (153 KB)