Ticket #4445: PortDrivers.diff
File PortDrivers.diff, 834 bytes (added by , 15 years ago) |
---|
-
src/servers/midi/PortDrivers.cpp
old new 114 114 sysexAlloc *= 2; 115 115 sysexBuf = (uint8*) realloc(sysexBuf, sysexAlloc); 116 116 } 117 continue; 117 118 } else if (next == B_SYS_EX_END) { 118 119 SpraySystemExclusive(sysexBuf, sysexSize); 119 120 haveSysEx = false; 121 continue; 120 122 } else if ((next & 0xF8) == 0xF8) { 121 123 // System Realtime interleaved in System Exclusive byte(s) 122 124 SpraySystemRealTime(next); 125 continue; 126 } else { // must be a new status byte 127 // Terminate the sequence 128 SpraySystemExclusive(sysexBuf, sysexSize); 129 haveSysEx = false; 130 // and *don't* go back for another byte 123 131 } 124 continue;125 132 } 126 133 127 134 if ((next & 0xF8) == 0xF8) // System Realtime