realtime voice

using c++, mfc and in Win32 enviroment i like to implement a capture process
so fast that there be no loss of packets (fast like realtime)(many packets / sec).
Very fast like a realtime movie.
What is the best way to handle this?. any example codes?.
[264 byte] By [youngprogrammer] at [2007-11-19 2:45:21]
# 1 Re: realtime voice
This isn't easy.

First some questions :

(1) What are you capturing ?
(2) I presume that you want to capture sound/video and then pass it via network to another machine. Is this correct ?

Answer these questions and I'll see if I can't help.

Darwen.
darwen at 2007-11-11 0:46:07 >
# 2 Re: realtime voice
Let's say i am capturing frames of images just to display them so fast like a realtime process. what's the best scheme method to handle this?. any example code?. windows multimedia?..
youngprogrammer at 2007-11-11 0:47:12 >
# 3 Re: realtime voice
The best bet is to have a look at the DirectShow support. It's not easy (you need some pretty in-depth knowledge of COM for one thing) but it should fulfil your needs.

Once you've downloaded the DirectX SDK (from www.microsoft.com) then look up the CaptureGraphBuilder.

Also look at the AmCap sample.

As I've said before what you want isn't easy. It's going to take you a while - not a 2 day job, more like a 2 month job if you don't know COM.

Darwen.
darwen at 2007-11-11 0:48:11 >
# 4 Re: realtime voice
Darwin's right in that DirectShow is not trivial, but don't get discouraged. There are lots of examples within Microsoft, and you can see results pretty immediately.
TSYS at 2007-11-11 0:49:19 >