-
Notifications
You must be signed in to change notification settings - Fork 515
CoreMIDI iOS xcode14.0 beta1
TJ Lambert edited this page Sep 9, 2022
·
3 revisions
#CoreMIDI.framework https://github.com/xamarin/xamarin-macios/pull/15917
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h 2022-02-05 11:52:48.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/CoreMIDI.h 2022-05-21 07:10:44.000000000 -0400
@@ -20,6 +20,7 @@
#include <CoreMIDI/MIDIThruConnection.h>
#include <CoreMIDI/MIDIDriver.h>
#include <CoreMIDI/MIDIMessages.h>
+#include <CoreMIDI/MIDIBluetoothConnection.h>
#if __OBJC__
#import <CoreMIDI/MIDINetworkSession.h>
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h 1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h 2022-05-31 14:52:31.000000000 -0400
@@ -0,0 +1,82 @@
+/*
+ File: CoreMIDI/MIDIBluetoothConnection.h
+
+ Contains: Routines for connecting MIDI over Bluetooth LE.
+
+ Copyright: (c) 2022 by Apple Inc., all rights reserved.
+
+ Bugs?: For bug reports, consult the following page on
+ the World Wide Web:
+
+ http://feedbackassistant.apple.com/
+
+*/
+
+#pragma once
+#include <CoreFoundation/CoreFoundation.h>
+#include <CoreMIDI/MIDIServices.h>
+
+CF_ASSUME_NONNULL_BEGIN
+
+// -----------------------------------------------------------------------------
+/*!
+ @header MIDIBluetoothConnection.h
+
+ The following methods are used to register connected Bluetooth Low Energy
+ MIDI peripherals with CoreMIDI so that MIDI I/O becomes possible and to
+ programmatically disconnect a BLE MIDI peripheral from CoreMIDI.
+
+*/
+// -----------------------------------------------------------------------------
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+// =================================================================================================
+
+/*!
+ @function MIDIBluetoothDriverActivateAllConnections
+
+ @abstract Promotes all active CoreBluetooth connections to peripherals' Bluetooth LE MIDI
+ service into online MIDI devices capable of I/O.
+
+ @result An OSStatus result code.
+
+ @discussion
+ To programmatically establish a Bluetooth MIDI driver connection to a LE MIDI peripheral,
+ the following steps must be completed in order.
+
+ 1. Using CoreBluetooth API, scan for the peripheral's advertised LE MIDI service.
+ 2. Using CoreBluetooth API, connect to the desired advertised peripheral.
+ 3. Upon successful connection, call MIDIBluetoothDriverActivateAllConnections.
+ 4. Using CoreMIDI API, confirm the peripheral's registration by locating its MIDIDeviceRef.
+ 5. If present, CoreMIDI now owns a connection the peripheral.
+ 6. Using CoreBluetooth API, disconnect from the peripheral now managed by CoreMIDI.
+*/
+extern OSStatus
+MIDIBluetoothDriverActivateAllConnections(void) API_AVAILABLE(macos(13.0), ios(16.0));
+
+/*!
+ @function MIDIBluetoothDriverDisconnect
+
+ @abstract Disconnects the Bluetooth MIDI driver from a BLE MIDI peripheral.
+
+ @param uuid
+ A string representation of the CoreBluetooth UUI for a connected peripheral.
+
+ @result An OSStatus result code.
+
+ @discussion
+ If a CoreMIDI is connected to a BLE MIDI peripheral with the supplied UUID, it will disconnect.
+*/
+extern OSStatus
+MIDIBluetoothDriverDisconnect(__nonnull CFStringRef uuid) API_AVAILABLE(macos(13.0), ios(16.0));
+
+#ifdef __cplusplus
+}
+#endif
+
+CF_ASSUME_NONNULL_END
+
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status