Making AudioHardwareSetProperty() survive a logout?
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