Solved

Change volume for both 9x & NT

Posted on 2002-06-06
6
271 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 100
oracle global variables 4 79
SUM 2 INTEGER ARRAYS INTO 1 10 111
firemonkey Android Listview Sort items 7 70
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

713 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