| 205 | } |
| 206 | |
| 207 | void CtrlrMidiInputComparatorSingle::updateCacheSysEx (CtrlrMultiMidiMapIterator &it) |
| 208 | { |
| 209 | CtrlrCacheDataMulti c((*it).first, (*it).second); |
| 210 | if (cacheSysEx.contains (c)) |
| 211 | { |
| 212 | if (cacheSysEx.indexOf (c) == 0) |
| 213 | return; |
| 214 | else |
| 215 | { |
| 216 | cacheSysEx.swap (cacheSysEx.indexOf(c), 0); |
| 217 | } |
| 218 | } |
| 219 | else |
| 220 | { |
| 221 | cacheSysEx.insert (0, c); |
| 222 | cacheSysEx.resize (cacheSize); |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | bool CtrlrMidiInputComparatorSingle::cacheMatch(CtrlrMidiMessageType type, const int number, const int channel) |
| 227 | { |