[SDL] accurate audio timing

Richard Henwood r.henwood at rl.ac.uk
Fri Jan 4 00:41:21 PST 2008


Hi Folks;

I have a design question relating to a timing/dance based game I might
return to work on. Such a game relies on sound/music playing with high
degrees of accuracy since the ear can easily pick up millisecond errors.
The basic gameplay would have a metronome with the user required to perform
actions in time with it.

I played around with SDL some time ago (over a year) to try and get this
working and ran into problems generating an metronome with wav samples.

In short, if I want to make a reliably timed, cross-platform metronome,
which route should go; threads, callback, something else?

Sorry for the unspecific nature of my question; 
any thoughts/suggestions are appreciated

best regards,
richard



More information about the SDL mailing list