• 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: Stereo panning with the HAL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stereo panning with the HAL


  • Subject: Re: Stereo panning with the HAL
  • From: Jeff Moore <email@hidden>
  • Date: Wed, 7 May 2008 11:43:13 -0700

kAudioDevicePropertyJackIsConnected does what you think it does. The catch is that not all pieces of hardware support jack detection.

You might be sensing a pattern here. There are lots of properties defined in <CoreAudio/AudioHardare.h>, but it is not required that every device to support every property. Some support the barest minimum necessary for doing IO. Some support a wide array of controls. The point is that your application has to be prepared to cope with a wide variety of devices that provide varying degrees of control.

Finally, I have to give my standard speech about shared settings like hardware volume. Apps should not, in general, be messing about with these sorts of things. They belong to the user and often are configured specifically the way the user wants them. Apps that come along and think they know better than the user often end up causing more problems than they solve. For nearly all applications out there, the right thing to do is to handle your volume, panning, etc. in your own mix engine and leave the shared settings alone. Obviously there are exceptions to every rule, but please keep this in mind when thinking about your application.


On May 7, 2008, at 11:18 AM, Andrew MacDonald wrote:

This leads to an additional question: is there a way to detect if something is plugged into the output jack? I tried kAudioDevicePropertyJackIsConnected, but it also isn't recognized by the built-in output.



--

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
  • Follow-Ups:
    • Re: Stereo panning with the HAL
      • From: "Mikael Hakman" <email@hidden>
References: 
 >Stereo panning with the HAL (From: Andrew MacDonald <email@hidden>)
 >Re: Stereo panning with the HAL (From: "Mikael Hakman" <email@hidden>)
 >RE: Stereo panning with the HAL (From: Andrew MacDonald <email@hidden>)

  • Prev by Date: RE: Stereo panning with the HAL
  • Next by Date: Re: Stereo panning with the HAL
  • Previous by thread: RE: Stereo panning with the HAL
  • Next by thread: Re: Stereo panning with the HAL
  • Index(es):
    • Date
    • Thread