Re: Sleep and CoreMIDI
Re: Sleep and CoreMIDI
- Subject: Re: Sleep and CoreMIDI
- From: Stephen Davis <email@hidden>
- Date: Wed, 12 May 2004 01:32:00 -0700
On May 11, 2004, at 11:55 PM, Herbie Robinson wrote:
Hi
Apologies if this issue has already been discussed. THINK I vaguely
remember
some prior discussion, but am not certain.
With some MIDIMan MIDI interfaces, and perhaps others-- If the Mac
goes to
sleep, after the Mac wakes up, MIDI is dead, and requires a reboot to
get it
working again.
Back in the 'good old days' of Classic, I would disable sleep and
processor
throttling when the program started up.
I removed that code in the OSX version. I thought disabling sleep
might not be
advisable, not recommended, or perhaps it isn't even possible
anymore, dunno.
Given that it is not a good thing that MIDI would die if you let the
Mac go to
sleep, what is the recommended way to avoid this?
Is it 'user-friendly' or even possible, to reliably disable sleep on
OSX?
It would be nice if Apps could do that when it was really necessary,
but not all the time.
In the context of a DAW, that would be when it's sitting there idle
and not playing or recording. It would probably require event
notification, because the DAW would have to stop real-time threads and
the like to sleep gracefully....
At least some DAW vendors recommend that their users turn sleep off in
the control panel. This is less energy efficient than having the Apps
turn sleep off when they need to.
http://developer.apple.com/technotes/tn2002/tn2075.html
Applications can and should prevent sleep when it makes sense for them
to do so. Note that different levels of sleep prevention are available
(screen only, full, etc.) so be sure to handle all the different
variants accordingly.
One other thing: the Carbon power management APIs are available as well
but the IOKit-based ones described in the above TechNote are the
recommended ones to use.
stephen
_______________________________________________
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.