AU MIDI out: from relative time to absolute time
AU MIDI out: from relative time to absolute time
- Subject: AU MIDI out: from relative time to absolute time
- From: philippe wicker <email@hidden>
- Date: Tue, 18 Oct 2011 23:26:57 +0200
Hi all,
To record the MIDI which is generated within an AU I use the MIDISend API. MIDISend needs a packet list containing packets time stamped with an absolute host time. As far as I know there's no absolute time passed to the AU in the AudioTimeStamp. What I do for now is to get the absolute time in the first render following the beginning of the record and uses this time as a start time. But then this reference time depends on the time when my render is called by the host and this time may vary according to the position of my plugin in the host graph (or whatever Logic uses to sequence the calls to the AUs render) and the load incurred by the preceding AUs.
So is there a way to get the absolute time when the host is starting to process the graph?
Thanks,
Philippe
_______________________________________________
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