DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 03-05-2006, 03:17 AM   #1
toolbox
New Member
 
Join Date: Mar 2006
Posts: 2
Default Real time sound capture and processing

Hello,

I'm looking for a way to capture the sound from the microphone in real time, modify it by applying an effect and output it back to the microphone stream so that other applications which might be recording from the microphone would receive the modified audio. Does anyone have any ideas on how to approach this task?

Thanks.
toolbox is offline   Reply With Quote
Old 03-05-2006, 07:23 PM   #2
TheNut
Senior Member
 
TheNut's Avatar
 
Join Date: Aug 2004
Location: Thornhill, TO
Posts: 851
Default Re: Real time sound capture and processing

I don’t think that’s possible unless you write a low-level driver to intercept communication between the OS and the sound card.

If you want to do this for a specific program, check to see if they offer an SDK. It would be far easier to add your program in as a plugin. Alternatively, look into Direct Capture (DirectX library) to capture auto from the mic. I used that library once and it’s quite flexible. You can stream in the audio, filter it however you want, and play it back using Direct Audio. I did this for a simple app I made where I compressed the audio using Speex and sent the information over the Internet.
___________________________________________
http://www.nutty.ca - Being a nut has its advantages.
TheNut is offline   Reply With Quote
Old 03-06-2006, 03:21 PM   #3
monjardin
Senior Member
 
Join Date: Oct 2005
Location: Pensacola, FL
Posts: 1,028
Default Re: Real time sound capture and processing

You definitely want to bypass the kmixer on WinXP. It adds a lot of latency. Search for ASIO drivers.
___________________________________________
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*
monjardin is offline   Reply With Quote
Old 03-07-2006, 09:56 PM   #4
toolbox
New Member
 
Join Date: Mar 2006
Posts: 2
Default Re: Real time sound capture and processing

Thanks for pointing me in the right direction. I'll read some articles on driver development now because I never developed drivers before.
toolbox is offline   Reply With Quote
Old 04-29-2006, 09:37 AM   #5
formant
New Member
 
Join Date: Apr 2006
Posts: 2
Default Re: Real time sound capture and processing

This is easy to accomplish using Max/MSP (real-time processing software, among other things) and Soundflower (audio routing software - sending audio from one app to another), both made by Cycling '74 - www.cycling74.com

Max/MSP is an object-based graphic programming environment. Good documentation, take a look. I use it EVERY DAY. There's a free 30-day demo version, or you can download the Runtime version and look for an already-made Max program made to do what you want. There's a large Max programmer community. Check out maxobjects.com for 3rd party external objects. Search the cyling74 forums for sample patches that do what you want. Good luck!
formant is offline   Reply With Quote
Old 05-07-2006, 06:15 PM   #6
leechlife
New Member
 
Join Date: May 2006
Posts: 2
Default Re: Real time sound capture and processing

if didn't develop drivers before, you might not want to do that .

ASIO is the way to go, if using a pc soundcard, (assuming it has ASIO drivers, which normally every soundcard aimed for recording,.. has)

look at the steinberg hompage to get the ASIO sdk, and then it depends on your soundcard how much latency it has (in+out + effect prcssingtime), to determine if you can live with that delay. (if it's realtime enough ).

Also if you have any software which is an vst-host, supporting ASIO, you could also justy get VST skd to develop effects and vsti.
Cubase, for example does it, but there also some freeware vst host out there.

It all depends if you wanna spent some money or more time in development!
In all cases you need a proper soundcard with a low latency, else you can forget about the realtime.
leechlife is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 12:45 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.