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 HMIDIOUT Handle
= NULL
;
28 printf("MIDI output devices: %d\n", outs
);
30 for (c
= 0; c
< outs
; c
++)
32 if (midiOutGetDevCaps(c
, &outcaps
, sizeof(MIDIOUTCAPS
)) == MMSYSERR_NOERROR
)
33 printf("Device #%d: %s\n", c
, outcaps
.szPname
);
36 printf("Opening MIDI output #0\n");
38 Result
= midiOutOpen(&Handle
, 0, 0, 0, CALLBACK_NULL
);
39 printf("Result == %d Handle == %d\n", Result
, (int)Handle
);
42 midiOutShortMsg(Handle
, 0x007f3090);
45 printf("\nMIDI input devices: %d\n", ins);
47 for (c = 0; c < ins; c ++)
49 midiInGetDevCaps(c, &incaps, sizeof(incaps));
50 printf("Device #%d: %s\n", c, incaps.szPname);