Re: MIDITimeStamp
Re: MIDITimeStamp
- Subject: Re: MIDITimeStamp
- From: Doug Wyatt <email@hidden>
- Date: Thu, 23 Jan 2003 12:44:46 -0800
#include <CoreAudio/HostTime.h>
#define kNanosPerSecond 1000000000ULL
MIDITimeStamp now = AudioGetCurrentHostTime();
UInt64 nowNanos = AudioConvertHostTimeToNanos(now);
UInt64 oneSecondFromNowNanos = nowNanos + kNanosPerSecond;
MIDITimeStamp oneSecondFromNow =
AudioConvertNanosToHostTime(oneSecondFromNowNanos);
Doug
On Thursday, Jan 23, 2003, at 04:50 US/Pacific, Vigour Vigour wrote:
I have problems to get MIDITimeStamp work? I have searched the
Archives but I don't get it. I want to send out a note 1 seconds from
now. Maybe someone can show me some working example code?
Best regards Peter
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
References: | |
| >MIDITimeStamp (From: "Vigour Vigour" <email@hidden>) |