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. Ciao, -- FA _______________________________________________ Linux-audio-dev mailing list [email protected] https://lists.linuxaudio.org/listinfo/linux-audio-dev
