Solved

Line in and mic volume

Posted on 1999-01-12
7
930 Views
Last Modified: 2011-11-09
How can I do to control the line in and mic volume with delphi?
0
Comment
Question by:logosapience
7 Comments
 
LVL 20

Expert Comment

by:Madshi
ID: 1356043
I guess you'll have to use the mixer*** functions. Look at the following site. Perhaps it'll help you to start digging into this complex theme:

http://www.wilsonc.demon.co.uk/delphi.htm 

Regards, Madshi.
0
 
LVL 1

Expert Comment

by:skatan187
ID: 1356044
{=====================================================|
| WaveControl 1.00 - (c) 1998 by John Mogesnen, DK    |
use this component
|-----------------------------------------------------|
| Change the WAV-Volume settings for Delphi 3         |
| (16 and 32 bits)                                    |
|-----------------------------------------------------|
| E-Mail:    JMogensnen@Web4you.dk                    |
|=====================================================}
(* Attention: To enabled componentuser to change the
              Update time remove the {} from the Code!*)
0
 
LVL 1

Expert Comment

by:skatan187
ID: 1356045
The api's in the component:

WaveOutSetVolume(VolumeControlHandle, CurrentVolumeLevel);
WaveOutGetVolume(VolumeControlHandle, pCurrentVolumeLevel);
line and mic will have api-functions like
lineoutset...
micoutset...
// not sure.. :-|

0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 20

Expert Comment

by:Madshi
ID: 1356046
There IS a WaveOutSetVolume, but NO line- or mic-OutSetVolume...   :-(

Regards, Madshi.
0
 
LVL 1

Author Comment

by:logosapience
ID: 1356047
I don't see how does it work and I'm not sure that it controls the volume for recording mic and line.
0
 
LVL 15

Accepted Solution

by:
simonet earned 50 total points
ID: 1356048
Go to http://www.bhnet.com.br/~simonet, then to the How-To Projects page and download the " How To Detect Multimedia Devices and Set their Volume" project. Full source code is included and it fully answers your question.

However, if you want a quick answer, check the

auxSetVolume API. It lets you set the volume for auxiliary devices (such as the mic and the CD player).

Yours,

Alex S. Abreu
0
 

Expert Comment

by:makadam
ID: 37108557
The Link is out.
There's other suggestion....
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

948 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

17 Experts available now in Live!

Get 1:1 Help Now