interpret CoreMidi unique ID as unsigned for consistency.
coremidi specifies it as SInt32 but system:midi_playback_-126632214 , even if only used internally, just does not seem right.
This commit is contained in:
parent
8587855b99
commit
087b5dc43b
@ -297,7 +297,7 @@ CoreMidiIo::port_id (uint32_t port, bool input)
|
||||
ss << "system:midi_capture_";
|
||||
SInt32 id;
|
||||
if (noErr == MIDIObjectGetIntegerProperty(_input_endpoints[port], kMIDIPropertyUniqueID, &id)) {
|
||||
ss << (int)id;
|
||||
ss << (unsigned int)id;
|
||||
} else {
|
||||
ss << port;
|
||||
}
|
||||
@ -305,7 +305,7 @@ CoreMidiIo::port_id (uint32_t port, bool input)
|
||||
ss << "system:midi_playback_";
|
||||
SInt32 id;
|
||||
if (noErr == MIDIObjectGetIntegerProperty(_output_endpoints[port], kMIDIPropertyUniqueID, &id)) {
|
||||
ss << (int)id;
|
||||
ss << (unsigned int)id;
|
||||
} else {
|
||||
ss << port;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user