Click to See Complete Forum and Search --> : How to control the microphone volume using DirectX C++?


elaine_loo
August 1st, 2005, 04:01 AM
Hi everyone,

I am using Visual C++.net to write a program to control the microphone. I do not know which interfaces to use and how to go about doing it.

Can anyone help me by giving me a headstart? Looking forward for your reply. Thank you.

Best Regards,
Elaine

philkr
August 1st, 2005, 04:05 AM
What do you mean by 'control the microphone'. If you want to record something, in windows API you would use the waveIn... functions.

elaine_loo
August 1st, 2005, 04:16 AM
Hi philkr,

What i mean is controlling the volume of the microphone. Can i use DirectX? How do I record the voice from the microphone?

Thank you.

Best Regards,
Elaine

philkr
August 1st, 2005, 05:22 AM
To set the playback volume you can use waveOutSetVolume(). Unfortunately there is no waveInSetVolume() function, so in order to set recording volume you will have to use the mixer... API. http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_audio_mixer_functions.asp

Shilpa15jain
October 24th, 2008, 02:00 AM
To set the playback volume you can use waveOutSetVolume(). Unfortunately there is no waveInSetVolume() function, so in order to set recording volume you will have to use the mixer... API. http://msdn.microsoft.com/library/en-us/multimed/htm/_win32_audio_mixer_functions.asp


Thanks for you all. I can set the volume of my microphone , using mixer api.
But I want to show the volume level of captured audio in slider.As if captured audio is loud this slider will be at high automatically, and if
captured audio is low this slider will go at low automatically and slider will go up and down according to volume level of capturing audio during speaking in microphone.

Can anybody please tell me which apis I have to use to implement it.I am unable to find it out.

Thank u very much in advance.