cwMidiPort.cpp: Print out message in testCallback().

This commit is contained in:
kevin 2021-08-15 16:03:56 -04:00
parent cb44d28430
commit 9d8d8ee051

View File

@ -520,10 +520,14 @@ namespace cw
for(j=0; j<p->msgCnt; ++j)
if( p->msgArray != NULL )
{
if( ((p->msgArray[j].status & 0xf0) == kNoteOnMdId) && (p->msgArray[j].d1>0))
printf("%ld %ld 0x%x %i %i\n", p->msgArray[j].timeStamp.tv_sec, p->msgArray[j].timeStamp.tv_nsec, p->msgArray[j].status,p->msgArray[j].d0, p->msgArray[j].d1);
}
else
{
printf("0x%x ",p->sysExMsg[j]);
}
}
}
} // device