I was expected to use timeSetEvent as a timer for
my MIDI sequencer application but I've seen on MSDN site
that it's an obsolete function and I should rather use CreateTimerQueueTimer.
That's ok for me but I have few questions about it.
In my app the timer is used for synchro. An asynchronous callback function
is called every 2/3 ms and does it's job.
So my questions are:
1 - Since I need just one timer, should I create a queue for the timer
with CreateTimerQueue or should I use the default timer queue ?
2 - What flag should I use ?
(I would choose WT_EXECUTEINTIMERTHREAD but I'm not sure at all.)
3 - Timer is used only when sequencer starts playback or
recording but what do I do when it stops ?
Should I delete timer and create a new one each
time sequencer starts playback/recording ?
Or is there any way to make the timer hold
on without delete it ?
Thanks for advance