• 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
Making AudioHardwareSetProperty() survive a logout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Making AudioHardwareSetProperty() survive a logout?


  • Subject: Making AudioHardwareSetProperty() survive a logout?
  • From: Nick Zitzmann <email@hidden>
  • Date: Sun, 22 May 2005 11:08:41 -0600

I checked the archives and Google, and haven't seen a solution to this problem...

I'm trying to write a simple application that works around a problem where some computers revert to using the internal speaker as an audio output device after waking the computer from sleep. So when the did- wake notification is received by the application, it calls:

AudioHardwareSetProperty(kAudioHardwarePropertyDefaultOutputDevice, size, &outputDevice);

"outputDevice" is a valid AudioDeviceID acquired before the computer sleeps. This works well, but the problem is once the computer is put to sleep at least once and is awakened, and then the user logs out, the OS reverts to using the internal speakers as an audio output device.

How do I make it so that the property set by AudioHardwareSetProperty () survives a logout? How does the Sound preference pane do this?

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

_______________________________________________
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


  • Follow-Ups:
    • Re: Making AudioHardwareSetProperty() survive a logout?
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Building AU for pre 10.4 with Tiger
  • Next by Date: AUSideChains: How to use "AUSplitter"?
  • Previous by thread: Re: Building AU for pre 10.4 with Tiger
  • Next by thread: Re: Making AudioHardwareSetProperty() survive a logout?
  • Index(es):
    • Date
    • Thread