[Media_api] MAC dynamic ports

Viceic Predrag viceic at net2000.ch
Sat Aug 5 10:22:19 PDT 2006


Hi ,

What I have done for my app, Freecycle, is implement the spooler which reinits 
portmidi every n sec (when in midi config dialog), which allows to obtain the 
same effect without modifiyng the portmidi codebase. However , you should 
check that portmidi cleans well it's state on reinit, in order to avoid the 
memleaks or duplicate midi ports (I had this problem with portmidi's alsa 
connector on linux)

Cheers,
Predrag


Le samedi 5 août 2006 03:54, Amit Itzkovich a écrit :
> I'm porting my PortMidi application to MAC, and have just realized that in
> order for my app to communicate with other MIDI app's I'll need to
> dynamically create a MIDI source and destination endpoints (according to
> the CoreMIDI terminology). I can create the source and destinations in my
> app code (outside portmidi) before portmidi starts, so that portmidi
> wouldn't have to change its static nature, but I'll need portmidi to
> recognize these MIDI sources/destinations and use them properly.
>
> How complicated will it be to update PortMIDI to support that?
>
> Thanks!
> Amit
>
> _______________________________________________
> media_api mailing list
> media_api at create.ucsb.edu
> http://www.create.ucsb.edu/mailman/listinfo/media_api



More information about the media_api mailing list