What sort of timer should I use for my sequencer?
What sort of timer should I use for my sequencer?
- Subject: What sort of timer should I use for my sequencer?
- From: Morgan Packard <email@hidden>
- Date: Sat, 15 Jan 2011 13:39:33 -0700
I've been calculating time by simply counting samples (each time I calculate a sample, I tick my time count forward) and dividing by sample rate. I suspect this isn't the best way. It seems to me that it would be better to have a sequencer running in in a separate thread from my audio generation code. NSTimer would be my first choice, but is not accurate enough for music. How can I set up a timer which is accurate enough for music?
thanks,
-Morgan
--
================================iOS app Thicket available on iTunes store.
================================
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden