hi,

it's a long time ago now, that i asked for your advice and visited the board. sorry for that, but i've a lot to do with school and stuff.
but back to my problem: i would like to read data directly from soundcard (line in, microphone) into my application and for example process that data. is there a possibility doing that without that windows mmedia stuff? is it possible with this "out" and "in" instructions?

thanks for your help!

bye,
nop :grin:
Posted on 2001-11-17 03:43:56 by NOP-erator
Yes it's possible. And no, you should not do it. You would suddenly
limit yourself to a VERY narrow range of sound cards, and you would
have to write a VXD for win9x and a KMD for win2k. And still it wouldn't
be easy. If you use "just" in/out, you will hog the system extremely
much while doing the sound capture. You'll then find out that you
need DMA... so now you need to interface with windows DMA handling
stuff (don't even think about doing this manually under a multitasking
O/S).

So, in the end, you're best off using the multimedia sound capture.
Or perhaps the DirectSound sound capture.

There's a reason microsoft wrote these APIs, trust me ;).
Posted on 2001-11-17 09:18:08 by f0dder
ok, thanks for that advice! do you have the example for that windows stuff? would be cool!

bye,
nop
Posted on 2001-11-17 12:08:34 by NOP-erator
Sorry, never dealt much with graphics/sound programming under
windows, sorry. But it should be well explained in the DirextX SDK,
and I think there's a couple of examples for sound capture as well.
Posted on 2001-11-17 12:16:52 by f0dder
I've toyed with the idea of making a DB level meter or Spectrum or Scope Display to go along with an MCI player I've made, but geez...finding info is harder than I expected. I wonder if anyone has any knowledge that could enlighten my journey ??
Posted on 2001-11-17 12:25:12 by gscundiff
You can find the multimedia programmer's reference at my site. Maybe that is of some help.

Thomas
Posted on 2001-11-17 13:50:17 by Thomas
Here is an example with directsound capture, it's not a self-prg ; it's part of my project : when you create the thread, it setup directsound capture stuff and start capturing -> iir prefilter -> 12800 hz amplitude modulation -> iir postfilter -> play it back , until you trigger soundthreadevent.

k
-
Posted on 2001-11-18 12:32:14 by kamilh