Ogasawara
2006-11-07 03:57:40 UTC
VC++6.0$B$r;H$C$F!"(BMIDI$B$N(BSysEx$B$r<u?.$9$k%3!<%I$rAH$s$G$$$^$9!#(B
20Byte$B$N(BSysEx$B$rN.$79~$s$G$_$?$N$G$9$,!"<B:]$K<u$1<h$k%G!<%?$,(B
6$B!A(B11Byte$B$***@Z$l$F$7$^$$!":$$C$F$*$j$^$9!#(B
$B%P%C%U%!$O%X%C%@$G(B
char bMidiSysBuffer[1024];
$B$***@k8@$7!"%@%$%"%m%0$G(B
ret = midiInOpen(&hMidiIn, MInDevNo, (DWORD)PrcMidiIn, (DWORD)this,
CALLBACK_FUNCTION);
hMidiHdr.lpData = &bMidiSysBuffer[0];
hMidiHdr.dwBufferLength = sizeof(bMidiSysBuffer);
hMidiHdr.dwFlags = 0;
ret = midiInPrepareHeader(hMidiIn, &hMidiHdr, sizeof(hMidiHdr));
ret = midiInAddBuffer(hMidiIn, &hMidiHdr, sizeof(hMidiHdr));
midiInStart(hMidiIn);
$B$3$N$h$&$K(BMIDI$B%G%P%$%9$r<u?.>uBV$K$7$F$*$j$^$9!#(B
$B$3$l$G!"3d$j9~$_;~$K!"(BMIM_LONGDATA$B$,Ht$s$G$-$?;~$N(B
dwBytesRecorded $B$r8+$k$H!"<B:]$KN.$79~$s$@D9$5$h$jC;$/!"(B
$BCf?H$r8+$F$bESCf$***@Z$l$F$$$k;v$,2r$j$^$9!#(B
$B$3$l$r!"ESCf$***@Z$l$k;vL5$/!":G8e$^$G<u?.$5$;$k$K$O(B
$B$I$N$h$&$KBP=h$7$?$i$h$$$+!"$465<x59$7$/$*4j$$$$$?$7$^$9!#(B
20Byte$B$N(BSysEx$B$rN.$79~$s$G$_$?$N$G$9$,!"<B:]$K<u$1<h$k%G!<%?$,(B
6$B!A(B11Byte$B$***@Z$l$F$7$^$$!":$$C$F$*$j$^$9!#(B
$B%P%C%U%!$O%X%C%@$G(B
char bMidiSysBuffer[1024];
$B$***@k8@$7!"%@%$%"%m%0$G(B
ret = midiInOpen(&hMidiIn, MInDevNo, (DWORD)PrcMidiIn, (DWORD)this,
CALLBACK_FUNCTION);
hMidiHdr.lpData = &bMidiSysBuffer[0];
hMidiHdr.dwBufferLength = sizeof(bMidiSysBuffer);
hMidiHdr.dwFlags = 0;
ret = midiInPrepareHeader(hMidiIn, &hMidiHdr, sizeof(hMidiHdr));
ret = midiInAddBuffer(hMidiIn, &hMidiHdr, sizeof(hMidiHdr));
midiInStart(hMidiIn);
$B$3$N$h$&$K(BMIDI$B%G%P%$%9$r<u?.>uBV$K$7$F$*$j$^$9!#(B
$B$3$l$G!"3d$j9~$_;~$K!"(BMIM_LONGDATA$B$,Ht$s$G$-$?;~$N(B
dwBytesRecorded $B$r8+$k$H!"<B:]$KN.$79~$s$@D9$5$h$jC;$/!"(B
$BCf?H$r8+$F$bESCf$***@Z$l$F$$$k;v$,2r$j$^$9!#(B
$B$3$l$r!"ESCf$***@Z$l$k;vL5$/!":G8e$^$G<u?.$5$;$k$K$O(B
$B$I$N$h$&$KBP=h$7$?$i$h$$$+!"$465<x59$7$/$*4j$$$$$?$7$^$9!#(B