Re: MIDI Port reference counting & power saving
Re: MIDI Port reference counting & power saving
- Subject: Re: MIDI Port reference counting & power saving
- From: Herbie Robinson <email@hidden>
- Date: Thu, 2 May 2002 17:23:23 -0400
Is there a way of knowing how many clients are using one's virtual endpoint?
It would be very handy to know if/when someone starts using the port, so as
to start generating (for virtual inputs) or reading (for virtual outputs)
data on those ports.
Indeed.
Extrapolating from this, the MIDI server could open a MIDI driver only when
someone requests an enpoint to it. At the moment the server opens the drivers
when it starts (and so powers the USB devices at that point) and thats
already *really* cool, but it would be even better if the devices where
powered up only when someone opens and endpoint to it. I'm thinking power
consumption on laptops, etc.
Michel
I'm not sure if this is a good idea. The drivers can take a while to
get started. It either won't make any difference (because
applications are connecting endpoints immediately) or it might make
applications sluggish. Also, some drivers need to run for a little
bit before the time-base stabilizes for accurate timing.
It might be better if there was a way for the application to tell the
MIDIServer what state it was in (idle, queued or running).
Actually, right now the system goes to sleep even if you are pumping
MIDI data fast and furious; so, if anything the opposite problem is
true today....
--
-*****************************************
**
http://www.curbside-recording.com/ **
******************************************
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.