#import <Audiobus/ABMIDIPort.h>
#define __ABMIDIReceiverPort_h |
typedef void(^ ABMIDIReceiverPortMIDIReceiverBlock)(__unsafe_unretained ABPort *_Nonnull source, const MIDIPacketList *_Nonnull packetList) |
Block to handle incoming MIDI messages.
Note: this will be called on the realtime MIDI receive thread, so be careful not to do anything that could cause priority inversion, like calling Objective-C, allocating memory, or holding locks.
- Parameters
-
source | The source port |
packetList | The MIDI packets |
typedef void(^ ABMIDIReceiverPortMIDIFlushEventBlock)(__unsafe_unretained ABPort *_Nonnull source) |
Block to handle MIDI flush events.
See ABMIDIReceiverPort's [MIDIFlushEventBlock](ABMIDIReceiverPort::MIDIFlushEventBlock) documentation for details.
Note: this will be called on the realtime MIDI receive thread, so be careful not to do anything that could cause priority inversion, like calling Objective-C, allocating memory, or holding locks.
- Parameters
-
typedef void(^ ABMIDIReceiverPortInstanceConnectionBlock)(ABMIDIReceiverPort *_Nonnull instance) |
Block to handle instance connection or disconnection.
Use this with the multi-instance port initializer. It will be called on the main thread. You may assign a new MIDIReceiverBlock value for the new instance when this block is called, and it will replace the one you provided to the ABMIDIReceiverPort initializer.
- Parameters
-