• 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
Re: Determining if devices are on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Determining if devices are on
      • From: Dominic Feira <email@hidden>
References: 
 >Determining if devices are on (From: Dominic Feira <email@hidden>)

  • Prev by Date: Determining if devices are on
  • Next by Date: Re: Determining if devices are on
  • Previous by thread: Determining if devices are on
  • Next by thread: Re: Determining if devices are on
  • Index(es):
    • Date
    • Thread