• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Sleep and CoreMIDI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Sleep and CoreMIDI (From: "James Chandler Jr" <email@hidden>)
 >Re: Sleep and CoreMIDI (From: Herbie Robinson <email@hidden>)

  • Prev by Date: Re: Sleep and CoreMIDI
  • Next by Date: Side-chains in AUs
  • Previous by thread: Re: Sleep and CoreMIDI
  • Next by thread: Side-chains in AUs
  • Index(es):
    • Date
    • Thread