Displaying 2 results from an estimated 2 matches for "dwcaptureposit".
2005 Jun 23
0
Speex and DS
For any kind of capture with computation, you need to use the DS concept
of read and capture positions.
Basically, allocate a DS capture buffer of at least 2 * framesize *
sizeof(short), preferably 4 * framesize or so.
Keep calling
pDSCaptureBuffer->GetCurrentPosition(&dwCapturePosition, &dwReadPosition)
When dwReadPosition has changed enough since the last processed frame that
there's a whole frame ready, lock the region from dwLastFrameReadPosition
to dwReadPosition. Never lock the entire buffer, that will halt capture
while you compress.
Copy the locked region i...
2005 Jun 23
2
Speex and DS
Hello everyone
I've a following problem with the speex codec. I'm developing application
that is supposed to read
sounds from the microphone with DirectSoundCapture. Unfortunately when I
want to compress and decompress
the sound buffer from DirectSound I only have jitter. Maybe you have some
code samples how to compress
standard DS buffers:
LPDIRECTSOUND8 lpDS = NULL;