-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stephen Gutekanst <[email protected]>
- Loading branch information
Showing
20 changed files
with
10,786 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
--- !tapi-tbd | ||
tbd-version: 4 | ||
targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, | ||
arm64e-macos, arm64e-maccatalyst ] | ||
install-name: '/System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI' | ||
current-version: 69 | ||
exports: | ||
- targets: [ x86_64-macos, x86_64-maccatalyst, arm64-macos, arm64-maccatalyst, | ||
arm64e-macos, arm64e-maccatalyst ] | ||
symbols: [ _MIDIBluetoothDriverActivateAllConnections, _MIDIBluetoothDriverDisconnect, | ||
_MIDICapabilityGetDiscoveryMUID, _MIDICapabilityMUIDCollides, | ||
_MIDIClientCreate, _MIDIClientCreateWithBlock, _MIDIClientDispose, | ||
_MIDIConfigCheckVirginState, _MIDIConfigDelete, _MIDIConfigDuplicate, | ||
_MIDIConfigExists, _MIDIConfigGetCurrent, _MIDIConfigGetList, | ||
_MIDIConfigInstall, _MIDIConfigNew, _MIDIConfigRename, _MIDIDestinationCreate, | ||
_MIDIDestinationCreateWithBlock, _MIDIDestinationCreateWithProtocol, | ||
_MIDIDeviceAddEntity, _MIDIDeviceCreate, _MIDIDeviceDispose, | ||
_MIDIDeviceGetEntity, _MIDIDeviceGetNumberOfEntities, _MIDIDeviceListAddDevice, | ||
_MIDIDeviceListDispose, _MIDIDeviceListGetDevice, _MIDIDeviceListGetNumberOfDevices, | ||
_MIDIDeviceNewEntity, _MIDIDeviceRemoveEntity, _MIDIEndpointDispose, | ||
_MIDIEndpointGetEntity, _MIDIEndpointGetRefCons, _MIDIEndpointSetRefCons, | ||
_MIDIEntityAddOrRemoveEndpoints, _MIDIEntityGetDestination, | ||
_MIDIEntityGetDevice, _MIDIEntityGetNumberOfDestinations, | ||
_MIDIEntityGetNumberOfSources, _MIDIEntityGetSource, _MIDIEventListAdd, | ||
_MIDIEventListForEachEvent, _MIDIEventListInit, _MIDIEventPacketSysexBytesForGroup, | ||
_MIDIExternalDeviceCreate, _MIDIFlushOutput, _MIDIGetDestination, | ||
_MIDIGetDevice, _MIDIGetDriverDeviceList, _MIDIGetDriverIORunLoop, | ||
_MIDIGetExternalDevice, _MIDIGetNumberOfDestinations, _MIDIGetNumberOfDevices, | ||
_MIDIGetNumberOfExternalDevices, _MIDIGetNumberOfSources, | ||
_MIDIGetSource, _MIDIInputPortCreate, _MIDIInputPortCreateWithBlock, | ||
_MIDIInputPortCreateWithProtocol, _MIDINetworkBonjourServiceType, | ||
_MIDINetworkNotificationContactsDidChange, _MIDINetworkNotificationSessionDidChange, | ||
_MIDIObjectFindByUniqueID, _MIDIObjectGetDataProperty, _MIDIObjectGetDictionaryProperty, | ||
_MIDIObjectGetIntegerProperty, _MIDIObjectGetProperties, _MIDIObjectGetStringProperty, | ||
_MIDIObjectRemoveProperty, _MIDIObjectSetDataProperty, _MIDIObjectSetDictionaryProperty, | ||
_MIDIObjectSetIntegerProperty, _MIDIObjectSetStringProperty, | ||
_MIDIOutputPortCreate, _MIDIPacketListAdd, _MIDIPacketListInit, | ||
_MIDIPortConnectSource, _MIDIPortDisconnectSource, _MIDIPortDispose, | ||
_MIDIReceived, _MIDIReceivedEventList, _MIDIRestart, _MIDISend, | ||
_MIDISendEventList, _MIDISendSysex, _MIDISendUMPSysex, _MIDISendUMPSysex8, | ||
_MIDIServerRun, _MIDISetupAddDevice, _MIDISetupAddExternalDevice, | ||
_MIDISetupRemoveDevice, _MIDISetupRemoveExternalDevice, _MIDISourceCreate, | ||
_MIDISourceCreateWithProtocol, _MIDIThruConnectionCreate, | ||
_MIDIThruConnectionDispose, _MIDIThruConnectionFind, _MIDIThruConnectionGetParams, | ||
_MIDIThruConnectionParamsInitialize, _MIDIThruConnectionSetParams, | ||
_MIDITimerTaskCreate, _MIDITimerTaskDispose, _MIDITimerTaskSetNextWakeTime, | ||
__ZN4MIDI11StreamState22update_with_v1_packetsENSt3__14spanIKjLm18446744073709551615EEE, | ||
__ZN4MIDI11StreamState5chaseERNS_10PacketizerE, __ZN4MIDI11StreamState5clearEv, | ||
__ZN4MIDI11StreamState5resetERNS_10PacketizerE, __ZN4MIDI11StreamStateC1Ej, | ||
__ZN4MIDI11StreamStateC2Ej, __ZN4MIDI16LegacyPacketList4dumpEPKS0_, | ||
__ZN4MIDI16LegacyPacketList6createE14MIDIProtocolIDyNSt3__14spanIKhLm18446744073709551615EEE, | ||
__ZN4MIDI23LegacyPacketListDeleterclEPNS_16LegacyPacketListE, | ||
__ZN4MIDI9EventList4dumpEPKS0_, __ZN4MIDI9EventList6createE14MIDIProtocolIDyNSt3__14spanIKjLm18446744073709551615EEE, | ||
__ZN4MIDI9EventList6createEPKS0_, __ZNK4MIDI9EventList4sizeEv, | ||
_kMIDIPropertyAdvanceScheduleTimeMuSec, _kMIDIPropertyCanRoute, | ||
_kMIDIPropertyConnectionUniqueID, _kMIDIPropertyDeviceID, | ||
_kMIDIPropertyDisplayName, _kMIDIPropertyDriverDeviceEditorApp, | ||
_kMIDIPropertyDriverOwner, _kMIDIPropertyDriverVersion, _kMIDIPropertyImage, | ||
_kMIDIPropertyIsBroadcast, _kMIDIPropertyIsDrumMachine, _kMIDIPropertyIsEffectUnit, | ||
_kMIDIPropertyIsEmbeddedEntity, _kMIDIPropertyIsMixer, _kMIDIPropertyIsSampler, | ||
_kMIDIPropertyManufacturer, _kMIDIPropertyMaxReceiveChannels, | ||
_kMIDIPropertyMaxSysExSpeed, _kMIDIPropertyMaxTransmitChannels, | ||
_kMIDIPropertyModel, _kMIDIPropertyName, _kMIDIPropertyNameConfiguration, | ||
_kMIDIPropertyNameConfigurationDictionary, _kMIDIPropertyOffline, | ||
_kMIDIPropertyPanDisruptsStereo, _kMIDIPropertyPrivate, _kMIDIPropertyProtocolID, | ||
_kMIDIPropertyReceiveChannels, _kMIDIPropertyReceivesBankSelectLSB, | ||
_kMIDIPropertyReceivesBankSelectMSB, _kMIDIPropertyReceivesClock, | ||
_kMIDIPropertyReceivesMTC, _kMIDIPropertyReceivesNotes, _kMIDIPropertyReceivesProgramChanges, | ||
_kMIDIPropertySingleRealtimeEntity, _kMIDIPropertySupportsGeneralMIDI, | ||
_kMIDIPropertySupportsMMC, _kMIDIPropertySupportsShowControl, | ||
_kMIDIPropertyTransmitChannels, _kMIDIPropertyTransmitsBankSelectLSB, | ||
_kMIDIPropertyTransmitsBankSelectMSB, _kMIDIPropertyTransmitsClock, | ||
_kMIDIPropertyTransmitsMTC, _kMIDIPropertyTransmitsNotes, | ||
_kMIDIPropertyTransmitsProgramChanges, _kMIDIPropertyUMPActiveGroupBitmap, | ||
_kMIDIPropertyUMPCanTransmitGroupless, _kMIDIPropertyUniqueID ] | ||
objc-classes: [ BLEMIDIAccessor, MIDICIDeviceInfo, MIDICIDiscoveredNode, MIDICIDiscoveryManager, | ||
MIDICIProfile, MIDICIProfileState, MIDICIResponder, MIDICISession, | ||
MIDINetworkConnection, MIDINetworkHost, MIDINetworkSession ] | ||
- targets: [ x86_64-macos, arm64-macos, arm64e-macos ] | ||
symbols: [ _MIDIDeviceDBGetManufModelProperties, _MIDIDeviceDBGetManufacturers, | ||
_MIDIDeviceDBGetModels, _MIDIDriverEnableMonitoring, _MIDIGet32BitOnlyDrivers, | ||
_MIDIGetSerialPortDrivers, _MIDIGetSerialPortOwner, _MIDIServerIs32Bit, | ||
_MIDISetNotificationRunLoop, _MIDISetSerialPortOwner, _MIDISetupCreate, | ||
_MIDISetupDispose, _MIDISetupFromData, _MIDISetupGetCurrent, | ||
_MIDISetupInstall, _MIDISetupToData, _kMIDIDriverPropertyUsesSerial, | ||
_kMIDIPropertyFactoryPatchNameFile, _kMIDIPropertyUserPatchNameFile ] | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
File: CoreMIDI/CoreMIDI.h | ||
Contains: Umbrella header for the CoreMIDI framework. | ||
Copyright: (c) 2000-2020 by Apple Inc., all rights reserved. | ||
Bugs?: For bug reports, consult the following page on | ||
the World Wide Web: | ||
http://feedbackassistant.apple.com/ | ||
*/ | ||
|
||
#ifndef __CoreMIDI_h__ | ||
#define __CoreMIDI_h__ | ||
|
||
#include <CoreMIDI/MIDIServices.h> | ||
#include <CoreMIDI/MIDISetup.h> | ||
#include <CoreMIDI/MIDIThruConnection.h> | ||
#include <CoreMIDI/MIDIDriver.h> | ||
#include <CoreMIDI/MIDIMessages.h> | ||
#include <CoreMIDI/MIDIBluetoothConnection.h> | ||
|
||
#if __OBJC__ | ||
#import <CoreMIDI/MIDINetworkSession.h> | ||
#endif | ||
|
||
#if __OBJC2__ | ||
#import <CoreMIDI/MIDICapabilityInquiry.h> | ||
#endif | ||
|
||
#endif |
82 changes: 82 additions & 0 deletions
82
Frameworks/CoreMIDI.framework/Headers/MIDIBluetoothConnection.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
Oops, something went wrong.