Displaying 2 results from an estimated 2 matches for "getcurrentposision".
2005 Jun 23
0
Speex and DS
...adPosition. 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 overhead of GetCurrentPosision, you
can estimate the time until the next frame is ready and then just sleep
that long, or use IDirectSoundNotify, setting a marker in the buffer for
each multiple of framesize, and then wait for the notification event
(which you can also plug into your main event loop if you don't want to...
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;