Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change volume for both 9x & NT

Posted on 2002-06-06
6
Medium Priority
?
276 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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 200 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] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

916 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