While I updated the MIDIPacketNext code, I had to update a few other things to get the library to compile.
I upped the Package swift version to 5.3 which allows using the platforms parameter, which was needed because MIDIClientCreateWithBlock and MIDIInputPortCreateWithBlock require macOS 10.11 minimum.
It's worth noting that as-is, this is a macOS-only library and will not build on other platforms such as iOS because it uses a couple API calls that are macOS-only: AudioGetCurrentHostTime and AudioConvertNanosToHostTime.
While I updated the MIDIPacketNext code, I had to update a few other things to get the library to compile.
I upped the Package swift version to 5.3 which allows using the
platforms
parameter, which was needed becauseMIDIClientCreateWithBlock
andMIDIInputPortCreateWithBlock
require macOS 10.11 minimum.It's worth noting that as-is, this is a macOS-only library and will not build on other platforms such as iOS because it uses a couple API calls that are macOS-only:
AudioGetCurrentHostTime
andAudioConvertNanosToHostTime
.Cheers.