osx/cmMidiOsx.c : Updated device reporting format.

This commit is contained in:
kevin 2013-09-29 18:48:43 -07:00
parent 0f75ad445c
commit 35181582f6

View File

@ -152,7 +152,7 @@ void _cmMpDeviceFree( cmMpDev* drp )
void _cmMpDevicePrint( cmMpDev* drp, unsigned devIdx, cmRpt_t* rpt ) void _cmMpDevicePrint( cmMpDev* drp, unsigned devIdx, cmRpt_t* rpt )
{ {
unsigned i,j; unsigned i,j;
cmRptPrintf(rpt,"%i %s\n",devIdx,drp->nameStr); cmRptPrintf(rpt,"%i '%s'\n",devIdx,drp->nameStr);
for(j=0; j<2; ++j) for(j=0; j<2; ++j)
{ {
@ -161,7 +161,7 @@ void _cmMpDevicePrint( cmMpDev* drp, unsigned devIdx, cmRpt_t* rpt )
for(i=0; i<portCnt; ++i) for(i=0; i<portCnt; ++i)
{ {
const cmMpPort* p = j==0 ? drp->iPortArray + i : drp->oPortArray + i ; const cmMpPort* p = j==0 ? drp->iPortArray + i : drp->oPortArray + i ;
cmRptPrintf(rpt," port:%s %i id:0x:%x %s\n", p->inputFl ? "in " : "out",i, p->uid, p->nameStr ); cmRptPrintf(rpt," port:%s %i id:0x:%x '%s'\n", p->inputFl ? "in " : "out",i, p->uid, p->nameStr );
} }
} }
} }
@ -714,7 +714,7 @@ cmMpRC_t cmMpDeviceSend( unsigned devIdx, unsigned portIdx, cmMidiByte_t status
mpl.packet[0].data[0] = status; mpl.packet[0].data[0] = status;
mpl.packet[0].data[1] = d0; mpl.packet[0].data[1] = d0;
mpl.packet[0].data[2] = d1; mpl.packet[0].data[2] = d1;
if(( err = MIDISend( _cmMpRoot.outPortRef, pp->epr, &mpl)) != noErr ) if(( err = MIDISend( _cmMpRoot.outPortRef, pp->epr, &mpl)) != noErr )
return _cmMpError(&_cmMpRoot.err,kSysErrMpRC,err,"Send on device:%i port:%i failed.",devIdx,portIdx); return _cmMpError(&_cmMpRoot.err,kSysErrMpRC,err,"Send on device:%i port:%i failed.",devIdx,portIdx);