Howdy Matt,

> On Win2k/NT4, we can use QueryPerformanceCounter (see the previous
> incanation of win32/usleep.c for usage).

Yes, this function is available on Win9x as well. But it doesn't generate any
events. You can't set it to send a message or call a function after so much
time. To implement that, wouldn't we have to set up a timer to wake up the sound
server and check if the QueryPerformanceCounter has reached a certain amount?
Thinking worst case, under Win9x, the minimum amount of time we could do that
for would be about 45ms still giving us the same problem.

> DirectX does has very high
> resolution timers as well -- we don't have to tie it specficially to
> DirectMusic or integrate any more than we have to.

Oooh yes, IReferenceClock::GetTime(). We could use
IReferenceClock::AdvisePeriodic() and wait on the semaphore that changes in the
sound server, yes?

Thanks,

Alex.



Reply via email to