Windows Forum - Computer Support Forums: C++ program to access the microphone? - Windows Forum - Computer Support Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

C++ program to access the microphone? Rate Topic: -----

Posted 26 October 2009 - 07:55 (#1) User is offline   Dodle 

  • Newbie
  • Pip
  • Group: WF Member
  • Posts: 32
  • Joined: 26-October 08

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:
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: 26 October 2009 - 08:05

0

Posted 27 October 2009 - 02:38 (#2) User is offline   ɹəuəllıʍ ʇɐb 

  • ドラえもん
  • View gallery
  • Group: WF Moderator
  • Posts: 8,770
  • Joined: 21-October 04
  • Gender:Male
  • Location:Tōkyō

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:
Posted Image Posted Image

Doraemon - the robot cat from the future.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users


IPB Skins by Skinbox

Enter your sign in name and password


Sign in options
Log in with Facebook Log in with Twitter   Or sign in with these services