Solved

Real time sound recording in a Windows App

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

Accepted Solution

by:
dtow earned 100 total points
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  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 …
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
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.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now