?
Solved

How to record sound?

Posted on 1998-12-11
11
Medium Priority
?
255 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 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.
Suggested Courses

800 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