• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MIDITimeStamp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: CoreMidi and Virtual EndPoints
  • Next by Date: Re: intra buffering scheduling of parameter value changes
  • Previous by thread: MIDITimeStamp
  • Next by thread: Error -3000 (Invalid component ID)
  • Index(es):
    • Date
    • Thread