adamnemecek / WebMIDIKit

Simplest MIDI Swift library
MIT License
147 stars 27 forks source link

MIDIPacketNext update & minor code refactor/tweaks #26

Closed orchetect closed 3 years ago

orchetect commented 3 years ago

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.

Cheers.

adamnemecek commented 3 years ago

Thanks. Do you want to open another PC fixing the white space? Most of the code from this PR has 8 spaces whereas most of the project uses 4 spaces.

adamnemecek commented 3 years ago

nvm I fixed it. Thanks again.