Re: Direct Sound GetCurrentPosition

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Fri, 1 Dec 2006 15:49:03 -0600, Dave wrote:

I'm using a direct sound software buffer. I'm not using the primary buffer
at all. You think I will run into problems on some hardware by not using
the primary buffer?

You should never use the primary buffer, it is only available for legacy
use and isn't "really" the primary buffer.

You now what I noticed, if you move applications around and bring apps up
and down the notification evens cause a lot of jitter in the audio because
they don't get fired on smooth 50 millisecond boundaries.

This is a flaw with Windows in general. The intensive graphic operations
interrupt the smooth operation of all processes and threads. About all you
can do to counter that is to increase the thread priority of the
notification thread so that when the event fires you are more likely to get
a waiting time slice. Obviously the best solution is to turn off the eye
candy by disabling these effects. Guilty effects are the program menu,
"Fade" and "Scroll", "Show window contents while dragging" which also
affects the minimize/restore.

I haven't experienced the notifications for other processes. I don't think.

Hopefully you shouldn't if you stay with software buffers.

--
http://www.chrisnet.net/code.htm
http://www.avdevforum.com/AV
.