Skip to content

Commit

Permalink
Issue #238: Change #defines in MIKMIDISystemExclusiveCommand to real …
Browse files Browse the repository at this point in the history
…variables with appropriate types
  • Loading branch information
armadsen committed Mar 17, 2018
1 parent 1634f98 commit b10352d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/MIKMIDISystemExclusiveCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
#import "MIKMIDISystemMessageCommand.h"
#import "MIKMIDICompilerCompatibility.h"

#define kMIKMIDISysexNonRealtimeManufacturerID 0x7E
#define kMIKMIDISysexRealtimeManufacturerID 0x7F
extern uint32_t const kMIKMIDISysexNonRealtimeManufacturerID;
extern uint32_t const kMIKMIDISysexRealtimeManufacturerID;

#define kMIKMIDISysexChannelDisregard 0x7F
#define kMIKMIDISysexBeginDelimiter 0xF0
#define kMIKMIDISysexEndDelimiter 0xF7
extern uint8_t const kMIKMIDISysexChannelDisregard;
extern uint8_t const kMIKMIDISysexBeginDelimiter;
extern uint8_t const kMIKMIDISysexEndDelimiter;

NS_ASSUME_NONNULL_BEGIN

Expand Down
7 changes: 7 additions & 0 deletions Source/MIKMIDISystemExclusiveCommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@
#error MIKMIDISystemExclusiveCommand.m must be compiled with ARC. Either turn on ARC for the project or set the -fobjc-arc flag for MIKMIDISystemExclusiveCommand.m in the Build Phases for this target
#endif

uint32_t const kMIKMIDISysexNonRealtimeManufacturerID = 0x7E;
uint32_t const kMIKMIDISysexRealtimeManufacturerID = 0x7F;

uint8_t const kMIKMIDISysexChannelDisregard = 0x7F;
uint8_t const kMIKMIDISysexBeginDelimiter = 0xF0;
uint8_t const kMIKMIDISysexEndDelimiter = 0xF7;

@interface MIKMIDISystemExclusiveCommand ()

@property (nonatomic, readwrite) UInt32 manufacturerID;
Expand Down

0 comments on commit b10352d

Please sign in to comment.