• 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
MIDI driver and sleep mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MIDI driver and sleep mode


  • Subject: MIDI driver and sleep mode
  • From: Daniel Mack <email@hidden>
  • Date: Thu, 13 Mar 2008 12:08:41 +0100

Hi,

How is sleep mode in MIDI drivers supposed to be handled properly. In such an implementation, I see the following sequence of calls:

[start of MIDIServer]
MyMIDIDriver::Start()
MyMIDIDriver::EnableSource(1)

[machine put to sleep]
MyMIDIDriver::Stop()
MyMIDIDriver::EnableSource(0)

[machine woke up]
MyMIDIDriver::Start()


After the machine is back from sleep, currently running application (MIDIMonitor in that case but others are equally affected) doesn't see MIDI messages anymore and obviously, the reason for that is the missing call to ::EnableSource(1). Even if I ignore these calls and just send out the inbound messages anyway, they won't reach the application. Is there anything a driver can do to prevent this behaviour? Or is it the application's responsibility to refresh all its MIDI connections once it detected a sleep mode event? Once I manually deselect and reselect the input source, ::EnableSource(1) is called and everything works fine again.


I see that on both 10.4.11 and 10.5.2.

Thanks,
Daniel

_______________________________________________
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


  • Prev by Date: Re: Sample-accurate parameter automation? Possibe at all with AUs?
  • Next by Date: Recording system audio
  • Previous by thread: Sample code and questions about Audio File Services
  • Next by thread: Recording system audio
  • Index(es):
    • Date
    • Thread