Solved

Change volume for both 9x & NT

Posted on 2002-06-06
6
270 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
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

791 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