or use the Windows Media Player control, which DOES have volume control.
Main Topics
Browse All TopicsHow would a novice VB 6 programmer go about creating a simple audio program that will play one channel for a pre-determined period of time, fade it's volume to about 25%, play channel B and when channel B is done, Channel A is returned to 100%? I can get 2 MultiMedia Controls to play the two tracks simultaneously and I don't need any help with the file maniputlation, I just don't know how to go about changing the sound levels related to a specific MM Control. Any ideas?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Yep, it's going to work. I've got about 50% of the project done this evening but I'm up agains another wall. What the heck kind of varialbe is WMP2.currentMedia.duration
Here's the simplest form of the problem.
Dim curLength as double
curLenght = WMP2.currentMedia.duration
PAUSE
Now, at the stop, I can hover my mouse over the WMP2.CurrentMedia.Duration
Works for me. According to the doc, it's a double, however it does say "To retrieve the value of this property, read access to Media Library is required. For more information, see Media Library Access."
Note that your code, as posted, is wrong.
Dim curLength as double 'variable is curLength
curLenght = WMP2.currentMedia.duration
If that is the problem, put "option Explicit" at the top of your module and it will cause an error on such typos
Do you have the Windows Media Player SDK? It's free and describes the interface.
Business Accounts
Answer for Membership
by: JohnBPricePosted on 2006-12-12 at 11:16:17ID: 18125067
Alas and alack, changing the volume is a pain, as the MM Control doesn't have a volume control (just mute).
You could try to monkey with the wave files and write them yourself using something like waveOutWrite, which is probably not all that hard to do, but really hard to figure out what to do, or use software that gives you more control over DirectX filters.