views:

58

answers:

1

I wonder if it's possible to detect that the user has an external headset plugged into the iPhone's 3.5mm connector or the 30-pin connector. I want to output audio only to an external audio device, and keep silent if nothing is connected.

Ari.

+2  A: 

The answer is very similar to the answer to this question, but you'll want to get the kAudioSessionProperty_AudioRoute property instead.

Chuck
Thanks! This is what I need. Now I wonder what are the possible values for the Auidio_Route property.
iter