Solved

Real time sound recording in a Windows App

Posted on 1997-11-29
2
231 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 100 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

717 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