Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to record sound?

Posted on 1998-12-11
11
Medium Priority
?
258 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
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.

 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

618 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