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


_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api
  • [Media_api] Hi! Juan Linietsky
    • [Media_api] PortMidi and Vista Roger Dannenberg

Reply via email to