search for: dwlastframereadposition

Displaying 2 results from an estimated 2 matches for "dwlastframereadposition".

2005 Jun 23
0
Speex and DS
...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 into a buffer, update dwLastFrameReadPosition = dwReadPosition, and unlock the buffer again. Compress the buffer you copied to. Repeat. If you want to avoid the rather gross ove...
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;