Re: Determining if devices are on
Re: Determining if devices are on
- Subject: Re: Determining if devices are on
- From: Dominic Feira <email@hidden>
- Date: Wed, 22 Sep 2004 00:10:27 -0400
For example, when the iSight lens is not open it will not record audio.
However, it still shows up in the list of devices.
How do I determine if the iSight is open and ready to go?
I have already handled all of the cases that you mention and those all
work great.
I would just like to be able to warn a user if they are about to record
from an iSight
whose lens isn't open.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
On Sep 21, 2004, at 11:47 PM, Brad Ford wrote:
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