Solved

How do you change the master volume setting?

Posted on 1998-05-06
5
136 Views
Last Modified: 2011-09-20
I have a program that is attempting to control the master volume of the program-users system, however attempts at altering this setting only allowed me to change the wave, midi, etc. volumes. Is it possible to change the master volume setting at all through a software application?and if so, how might I accomplish this?
0
Comment
Question by:GabeinOZ
  • 3
5 Comments
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Hi GabeinOZ,

The master volume is set by the soundcard driver. MMSystem drives the sound relative to this one. At the moment I don't know how to change the driver... Sorry

ZiF.
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Hi GabeinOZ,

Ok, found it.... on the net.... great all  these programmers!

Look at this one :

http://web.access.net.au/%7Egchandle/

TVolumeControl: Want your own Win95 volume control in your applications? Then use this. And link it to the
        TBalanceControl component for a complete package. Control the Master, CD, Mic, Auxillary, Midi, Wave, Line-In volume
        levels.
       
        TBalanceControl: Link the balance control to the TVolumeControl to have your own volume and balance control package in
        your applications. Control the Master, CD, Mic, Auxillary, Midi, Wave, Line-In balance levels.

Regards, ZiF.
0
 

Author Comment

by:GabeinOZ
Comment Utility
I've gotten it to work on a soundblaster card but cant get it to work on an ESS soundcard and thats where my real problem is. I know there is a way that windows handles it(we have an NEC with an ESS soundcard and all the volume settings are functional through windows)but I am unable to see how windows does it.
0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Mmmm.... sorry, at the moment I can't help you, maybe I'll find something, then I'll let you know... cheers, ZiF.
0
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 50 total points
Comment Utility
GabeinOZ,

Enum your actively running windows processes from within Delphi (see the EnumChildWindows API function), locate the volume control and issue Clicks to whatever control the volume control is using. You may have to use Winsight to get more details about what messages/controls the volume control is expecting/using.

I do this on a routine basis for controlling apps other than my own.

Good luck with your project!
Pegasus
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now