Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Real time sound recording in a Windows App

Posted on 1997-11-29
2
Medium Priority
?
233 Views
Last Modified: 2010-05-18
How do you go about recording sound in a Windows Application? I've heard of mciSendCommand and waveIn... Can anyone give me a concrete example on the use of these functions?  If its not too much trouble, I would prefer an MFC example.  Many thanks!!!
0
Comment
Question by:karlon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
dtow earned 200 total points
ID: 1174332
Just goto soundrecorder record what you want. name it whatever you want, but just make sure the file extension is .wav then place it in the media file folder in windows. Now goto control panel and get in to sounds now bring up the sound event you want to associate with that sound you recorded. Now click on browse. locate the file name in your C:windows\media\yourfile.wav that's it. Now every time that event happens you will here that sound.
  If what you wanted was to replaces say a sound in a game or a program just create a new sound and replace the old with the new, just make sure you are replacing apples with apples and oranges with oranges. If you need more detail please let me know and I will be glad to be more specific. You may want to give me an example of something you want done. Good luck!
                                              Dana
0
 

Author Comment

by:karlon
ID: 1174333
What I meant was how do i incorporate the feature of sound recording in a Visual C++ MFC program?  I wish to write an MFC program that records sounds from a microphone connected to my sound card.  I've heard of waveIn functions but I do not know how to use them or where to start.  Can you help?  Thanks again!!!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

636 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