Solved

How to record sound?

Posted on 1998-12-11
11
242 Views
Last Modified: 2012-05-04
I want to record sound from mic add some effect and give it out in real time... What interface should I use? Where can I find further information about it?
I tried DirectSound. Playing works, but couldn't find out how to record sounds... (is it possible? How?)
0
Comment
Question by:losty
[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
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 1

Expert Comment

by:The_Brain
ID: 1179949
it is possible, I just have never had to use it yet.  How do you think you get your programs which record wavs?
0
 
LVL 2

Expert Comment

by:trillo
ID: 1179950
The Brain: The existence of programs that record wav's doesn't mean that it's possible. Actually, that's completely wrong, because in a standard way, you can't record and play at the same time (which is what losty is asking). SoundRecorder, for example, records and plays wav files but not simultaneously, first one, then the other action.

Anyway, it's possible using DirectX technology. Let me see if I can help you, losty.
0
 
LVL 1

Expert Comment

by:The_Brain
ID: 1179951
Darn, good point.  But yet ovious, you can't record and play at the same instance or the same program.  Strange though, I can play and record at the same time using different instances of wav play...
0
Independent Software Vendors: 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!

 

Author Comment

by:losty
ID: 1179952
The Brain: Winamp V2.xx supports DirectSound as an Output device. If you use it you can play with multiple instances.
And most Internet Phoning utils use full duplex... that means that you can record and play at the same time...
It is possible... but what interface should i use? I tried DirectSound first, because you can play from multiple instances ... why not record and play instead of play two times ...
but... the next prob: how can i record with direct sound?
0
 
LVL 1

Expert Comment

by:andla
ID: 1179953
I would be happy if somebody posted a small codesnippet. :-)

Your sincerely
Andla
0
 
LVL 23

Accepted Solution

by:
chensu earned 100 total points
ID: 1179954
DirectX 5 and above support DirectSoundCapture. Look into the DirectSound Tutorials - Tutorial 2: Sound Capture in the DirectX SDK documentation. "This tutorial shows how to implement DirectSoundCapture to capture a sound (typically from the microphone input) and write it to a wave file." Get the DirectX 6.0 SDK because "The DirectSound documentation has been expanded to include new overviews and tutorials.".
0
 
LVL 1

Expert Comment

by:andla
ID: 1179955
losty>> When i downloaded directx SDK i did not find small samples how it works. Everything was mixed like spaghetti. The tutorial did not give much help either.
0
 

Author Comment

by:losty
ID: 1179956
andla & chensu: I currently downloading the DirectX Foundation SDKs (15 MB + 10 MB Base Components ...  i'm on 28.8 ... thanx Microsoft!) because these were the only DirectX SDKs I could find... DirectX 6.0 SDKs are only available on CD and since i live in germany i'll have to wait about 4 weeks (thnx MS again)
(hey, do you know, where i could get them (or parts of it) on the inet anyway?). I searched MFC's Info View for DirectSoundCapture, but can't find anything... I think it's because the Info Viewer has only infos about DirectX 2 or 3.
0
 
LVL 1

Expert Comment

by:andla
ID: 1179957
losty>> Have you tryed Altavista? Perhaps (i don't know) there is an other site that support 6.0.
If you are using MSVC 4.X 5.X-> the infoviewer does not give info on DirectX. The docs is only avaible in DirectX SDK package. About time to transfer i feel very happy. I have a ISDN 128 about 4.5 times faster that your modem.
"Do braucht ein sneller modem"

Gruss gott!!
0
 
LVL 23

Expert Comment

by:chensu
ID: 1179958
You may read the online DirectX SDK documentation. Go to http://msdn.microsoft.com/developer/ and register it. Thus you can access the MSDN Library Online. (http://msdn.microsoft.com/isapi/goprem.asp?TARGET=/msdn/library/?FinishURL=/msdn/library/default.htm)

But since you are using a 28.8 modem, you may have to wait for the CDs.
0
 

Author Comment

by:losty
ID: 1179959
Oki..
I finally got a book about Direct X ... I have not completely read it, but it seams like it has something to do with DirectSoundCapture...
I'll just give you the points ;)

CU LC!
0

Featured Post

Independent Software Vendors: 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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

733 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