[Media_api] PortMidi and Vista
Roger Dannenberg
rbd at cs.cmu.edu
Mon Mar 31 14:42:40 PDT 2008
Has anyone had good/bad experience with PortMidi (or Midi in general)
under Vista? We've been doing some testing with a Midisport 2x2, and
when we open both MIDI input and output (we're testing with the
pm_test/latency program), bad things happen when PortMidi calls
midiInClose(): the call does not return and the console just hangs for a
few minutes. Under the debugger, we see reports of some threads and the
application exiting, so evidently some fatal error is happening in
midiInClose() but is not reported back to the application.
I thought this might be related to buffer management (you have to post
buffers to the device to get input, and these have to be returned
carefully for an orderly shutdown). We added some counters and it does
appear that buffers are being returned properly to the callback and we
properly free them. There are other things we could look at, but
suggestions are welcome. Has anyone tried this with other devices/drivers?
-Roger
More information about the media_api
mailing list