[CM] portmidi reset

Rick Taube taube@uiuc.edu
Thu, 20 Oct 2005 06:14:29 -0500


Hi Anders, it seems that Portmidi reads descriptors only when pm_init 
is called. their docs say:
     The returned structure is owned by the PortMidi implementation and 
must
     not be manipulated or freed. The pointer is guaranteed to be valid
     between calls to Pm_Initialize() and Pm_Terminate().

reading that, it might be possible in lisp to call pm:terminate and 
then pm:initialize again:

	(portmidi-close)
	(pm:terminate)

	(pm:initialize)

you may have to set the global pm:*portmidi* to T as well.



On Oct 20, 2005, at 3:53 AM, andersvi@extern.uio.no wrote:

> Ive searched abit in portmidi.lisp without feeling lucky.  Is
> there a way to have the CM-portmidi interface update with newly
> added devices after cm is booted?
>
> -anders
>
> _______________________________________________
> Cmdist mailing list
> Cmdist@ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist