On Thu, Mar 29, 2012 at 08:52:45AM +0200, Christian Costa wrote:> ...
> + midiOutGetDevCapsW(index - 1, &caps, sizeof(caps));
> + CoCreateInstance(&CLSID_DirectMusicSynth, NULL, CLSCTX_INPROC_SERVER, &IID_IDirectMusicSynth8, (void**)&synth);Maybe I'm pickier than most people, but I like error checking on these
> + IDirectMusicSynth8_GetPortCaps(synth, port_caps);
sorts of calls. They make it easier to find what is happening when
something goes terribly and unexpectedly wrong.