[LAD] Fw: Re: Deriving a steady MIDI clock crossplatform?

Fons Adriaensen fons at linuxaudio.org
Thu May 19 23:01:39 CEST 2022

On Thu, May 19, 2022 at 10:40:48PM +0200, Robin Gareus wrote:
> While there is a corresponding mach/clock.h, for the case at hand it is
> preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is
> abstracted, and there is dedicated API to convert timestamped events
> with high precision:
> AudioConvertNanosToHostTime() and AudioConvertHostTimeToNanos()

The problem here is not conversion, but what to wait for,

In zita-convolver.h there is an implementation of sem_t for OSX
(which only has a crippled implementation), using a condition
variable. It doesn't have sem_timedwait(), (since zita-convolver
doesn't need it) but that could be added quite easily.



More information about the Linux-audio-dev mailing list