5 // WINE's mmsystem.h doesn't seem to define these properly:
7 #define MIDIOUTCAPS MIDIOUTCAPSA
8 #define MIDIINCAPS MIDIINCAPSA
9 #undef midiOutGetDevCaps
10 #define midiOutGetDevCaps midiOutGetDevCapsA
11 #undef midiInGetDevCaps
12 #define midiInGetDevCaps midiInGetDevCapsA
17 UINT outs
= midiOutGetNumDevs();
18 // UINT ins = midiInGetNumDevs();
25 printf("MIDI output devices: %d\n", outs
);
27 for (c
= 0; c
< outs
; c
++)
29 if (midiOutGetDevCaps(c
, &outcaps
, sizeof(MIDIOUTCAPS
)) == MMSYSERR_NOERROR
)
30 printf("Device #%d: %s\n", c
, outcaps
.szPname
);
33 printf("Opening MIDI output #0\n");
35 HMIDIOUT Handle
= NULL
;
36 UINT Result
= midiOutOpen(&Handle
, 0, 0, 0, CALLBACK_NULL
);
37 printf("Result == %d Handle == %d\n", Result
, (int)Handle
);
40 midiOutShortMsg(Handle
, 0x007f3090);
43 printf("\nMIDI input devices: %d\n", ins);
45 for (c = 0; c < ins; c ++)
47 midiInGetDevCaps(c, &incaps, sizeof(incaps));
48 printf("Device #%d: %s\n", c, incaps.szPname);