Solved

Change volume for both 9x & NT

Posted on 2002-06-06
6
273 Views
Last Modified: 2010-04-04
How can I change the volume for both Win 9x & NT. I want to increase and decrease the volume. Is it possible to change the windows volume and / or the wave volume? It must also change the sliders in the Volume Control window. Thanx in advance.
0
Comment
Question by:skynergy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 17

Expert Comment

by:inthe
ID: 7059306
hi,
you can use
WaveOutSetVolume()

dwVolume set like:
Left + Right = $FFFFFFFF
Left  = $0000FFFF
Right = $FFFF0000
no sound = $00000000

medium sound example:

WaveOutSetVolume(MediaPlayer1.DeviceId,$FF00FF00);

WaveOutGetVolume gets teh current volume.
0
 
LVL 3

Expert Comment

by:tongalite
ID: 7060370
listening :)
0
 

Author Comment

by:skynergy
ID: 7061869
Inthe, thanx but WaveOutSetVolume() only works in Wnidows 98 and not NT. Any other ideas?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:skynergy
ID: 7061870
Inthe, thanx but WaveOutSetVolume() only works in Windows 98 and not NT. Any other ideas?
0
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 7066254
hi,
>>Any other ideas?
er i have no other ideas ,except getting a component from torrys and checking the source of how they did it though im sure they will use waveoutsetvolume() for it..


>>WaveOutSetVolume() only works in Windows 98 and not NT.

not according to ms:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mmfunc_3a1x.asp

Regards Barry
0
 

Author Comment

by:skynergy
ID: 7113457
Thanx Barry.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question