comparison core/Midi.cpp @ 226:af1e662400fc mergingClockSync

Added argument to callback
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 13 Mar 2016 03:31:19 +0000
parents 97faaf985164
children a0a7f00cf98d
comparison
equal deleted inserted replaced
225:444f6028d6b1 226:af1e662400fc
59 elapsedDataBytes++; 59 elapsedDataBytes++;
60 if(elapsedDataBytes == messages[writePointer].getNumDataBytes()){ 60 if(elapsedDataBytes == messages[writePointer].getNumDataBytes()){
61 // done with the current message 61 // done with the current message
62 // call the callback if available 62 // call the callback if available
63 if(isCallbackEnabled() == true){ 63 if(isCallbackEnabled() == true){
64 messageReadyCallback(getNextChannelMessage()); 64 messageReadyCallback(getNextChannelMessage(), callbackArg);
65 } 65 }
66 waitingForStatus = true; 66 waitingForStatus = true;
67 writePointer++; 67 writePointer++;
68 if(writePointer == messages.size()){ 68 if(writePointer == messages.size()){
69 writePointer = 0; 69 writePointer = 0;