mrRay / vvopensource

OSC and MIDI frameworks for OS X and iOS, a framework for managing and rendering to GL textures in OS X, and a functional ISF (interactive shader format) implementation for OS X.
231 stars 33 forks source link

MIDI sending is not working on M1 #38

Open lov opened 2 years ago

lov commented 2 years ago

Hi there,

recently discovered this, and I think the problem is the timestamp. Using mach_absolute_time() for timestamps alone fixes the issue, and looking at the documentation of MIDITimeStamp shouldn't this be really just mach_absolute_time() always?

By the way, the root of the issue is timebase info is different on the M1: https://developer.apple.com/documentation/apple-silicon/addressing-architectural-differences-in-your-macos-code