?
Solved

Real time sound recording in a Windows App

Posted on 1997-11-29
2
Medium Priority
?
232 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

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. …
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

777 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