Have you tried QueryPerformanceCounter (and the associated QueryPerformanceFrequency) ? I use it to do cpu load calculations when streaming through pvoc processes. The ordinary Windows timer functions are known to be somewhat wobbly.


Richard Dobson


Peter Castine wrote:
Question to the Windows gurus (or the best the list has in that direction):

    How do I get decent timing on Windows?

I've got PortMIDI working. The test app currently plays C-Major chords at a user-configurable tempo, accentuating the first beat of the bar (user-configurable bar length--whoopee).

I've got a cross-platform timing architecture sitting on top of the Windows Multimedia timer API, which claims something approaching millesecond accuracy. Sounds more like +/- 80ms. Hell, I've had beginner piano pupils play with a better groove.

There's got to be a better way.

Any general tips, or anyone prepared to look at some code?

Hopefully,
Peter


_______________________________________________
media_api mailing list
[email protected]
http://www.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to