> And :-(( I have to quit the program, re-launch, re-open, re-scroll, re-zoom
> ...
>
> So I tried to implement a "Rescan MIDI devices" action in my program.

The way to do this is pass a notification callback to
MIDIClientCreate(), which gets called whenever a device is plugged in
or unplugged.  But I use CoreMIDI directly, not portmidi.  You can
check the portmidi sources, if it doesn't provide a second argument to
MIDIClientCreate then it can't do what you want.  Presumably you'd
have to extend Pm_Initialize with a way to pass a notification
callback, and figure out if ALSA and Windows can support the same
thing (I use a callback for JACK too, so presumably ALSA also works
that way).
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to