ABMIDIReceiverPort.h File Reference
#import <Audiobus/ABMIDIPort.h>

Classes

class  ABMIDIReceiverPort
 ABMIDIReceiverPort receives MIDI messages. More...
 

Macros

#define __ABMIDIReceiverPort_h
 

Typedefs

typedef void(^ ABMIDIReceiverPortMIDIReceiverBlock )(__unsafe_unretained ABPort *_Nonnull source, const MIDIPacketList *_Nonnull packetList)
 Block to handle incoming MIDI messages.
 
typedef void(^ ABMIDIReceiverPortMIDIFlushEventBlock )(__unsafe_unretained ABPort *_Nonnull source)
 Block to handle MIDI flush events.
 
typedef void(^ ABMIDIReceiverPortInstanceConnectionBlock )(ABMIDIReceiverPort *_Nonnull instance)
 Block to handle instance connection or disconnection.
 

Macro Definition Documentation

#define __ABMIDIReceiverPort_h

Typedef Documentation

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
sourceThe source port
packetListThe 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
sourceThe source port
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
instanceThe instance