Re: Determining if devices are on
Re: Determining if devices are on
- Subject: Re: Determining if devices are on
- From: Brad Ford <email@hidden>
- Date: Tue, 21 Sep 2004 20:47:15 -0700
Dominic,
Not sure what you mean by "on".
If by "on" you mean "present on the system", all you have to do is get
the list of audio devices. A device won't show up in the list if it's
turned off. You can also register as a listener of the hal
kAudioHardwarePropertyDevices property to be informed when devices come
and go.
If by "on" you mean "running", then you can use the
kAudioDevicePropertyDeviceIsRunningSomewhere property.
If by "on" you mean "accessible to my process", you can get the
kAudioDevicePropertyHogMode property to see if another process has
claimed it for its own and locked others out.
-Brad Ford
QuickTime Engineering
On Sep 21, 2004, at 7:15 PM, Dominic Feira wrote:
Hello.
How do I determine if a device is on in Core Audio?
I have been trying to determine wether an iSight is on unsuccessfully.
I have tried both: kAudioDevicePropertyJackIsConnected and
kAudioDevicePropertyMute.
I'm assuming that its something else.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
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
_______________________________________________
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