Re: Making AudioHardwareSetProperty() survive a logout?
Re: Making AudioHardwareSetProperty() survive a logout?
- Subject: Re: Making AudioHardwareSetProperty() survive a logout?
- From: Jeff Moore <email@hidden>
- Date: Tue, 31 May 2005 13:14:46 -0700
Catching up on the back log. Sorry for the delay.
First off, kAudioHardwarePropertyDefaultOutputDevice is a per-user
property. Every user has separate storage for this property. As such,
setting the value for one user is not going to change it for another
user.
That said, it sounds like you are saying that the when the user logs
back in after waking the machine, that the value of this property has
changed. Can you be more specific about what hardware is involved and
provide a little more info about the steps to reproduce the problem?
Thanks.
On May 22, 2005, at 10:08 AM, Nick Zitzmann wrote:
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
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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