Solved

Real time sound recording in a Windows App

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best book to learn C++ 4 87
Beginner to Unreal Engine 4 5 105
How to properly read C++ console input into several variables with scanf 2 29
C++ Code Issue 4 38
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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.

749 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