Solved

Change volume for both 9x & NT

Posted on 2002-06-06
6
274 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
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!

 

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month8 days, left to enroll

617 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