Custom methods
| 84 | |
| 85 | // Custom methods |
| 86 | Device* getDevice(int deviceId) { |
| 87 | if (!APP->midiLoopbackContext) |
| 88 | return NULL; |
| 89 | if (!(0 <= deviceId && (size_t) deviceId < NUM_DEVICES)) |
| 90 | return NULL; |
| 91 | Context* context = APP->midiLoopbackContext; |
| 92 | return context->devices[deviceId]; |
| 93 | } |
| 94 | }; |
| 95 | |
| 96 |
nothing calls this directly
no outgoing calls
no test coverage detected