Re: MIDIClientDispose and MIDIServer
Re: MIDIClientDispose and MIDIServer
- Subject: Re: MIDIClientDispose and MIDIServer
- From: Herbie Robinson <email@hidden>
- Date: Sat, 4 Dec 2004 17:51:41 -0500
At 6:57 PM -0800 12/3/04, Doug Wyatt wrote:
On Dec 3, 2004, at 18:04, Pete Gontier wrote:
Since MIDIClientCreate implicitly launches MIDIServer if necessary, I
assumed that the last client to be disposed via MIDIClientDispose would
implicitly quit MIDIServer. This seems not to be the case. MIDIServer only
quits when my app quits.
yeah, it quits when the last process which ever created a client quits.
At one point it probably crossed my mind to shutdown the server when
the last MIDIClient was disposed, but then I considered a client
which is living in a plugin or something like that. That plugin
might come and go fairly frequently, creating and destroying
clients, and would in turn cause the server to get launched and quit
frequently. Since launching the server takes a noticeable amount of
time on all but the fastest machines with a minimal set of drivers
installed, that was probably the end of that.
Actually, what's wrong with just leaving it up permanently, once
somebody has used MIDI? It could be CHROOTed someplace harmless; so,
it wouldn't be a security problem.
--
-*****************************************
** http://www.curbside-recording.com/ **
******************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden