Welcome Guest ( Log In | Register )
 
Reply to this topicStart new topic
> C++ program to access the microphone?
Dodle
post Oct 26 2009, 07:55
Post #1
Newbie
*
Group: WF Member
Posts: 32
Joined: 26-October 08
Member No.: 12,924


I want to build a program that will allow me to quickly mute and un-mute the mic, but I am a newbie programmer and don't know where to start looking for information on how to do this. I want to first start off by making a simple command line app that can accomplish this. Where can I find information on how to access the microphone controls through C++ code?

Here is an example of what I would like it to look like:

Output of the command line:
CODE
The mic is muted.
Type 'm' to mute, 'u' to un-mute:


Edit: I have found this: http://msdn.microsoft.com/en-us/library/sy...honevolume.aspx But as I said, I am a newbie. I haven't worked with the Windows API before, I don't know which libraries to use or how to use them. If anybody wants to point me to a good tutorial, I would appreciate it.

This post has been edited by Dodle: Oct 26 2009, 08:05
Go to the top of the page
 
+Quote Post

ɹəuəllıʍ ʇɐb
post Oct 27 2009, 02:38
Post #2
ドラえもん
Group Icon
Group: WF Support
Posts: 7,997
Joined: 21-October 04
From: Tōkyō
Member No.: 1,524


You have already done well with your research - finding the MediaCommands information.

Next, just go and try to write the program - this is the best way to learn things.

(I would gladly give you the information you want, but I don't know them. But I have countless times been in the same situation - not knowing how to do something, but trying until I succeeded.)

flowers.gif


--------------------


Doraemon - the robot cat from the future.
Go to the top of the page
 
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 20th November 2009 - 22:05