How can I detect if headphones are connected to an iPod touch G1?
问题 There are many articles on how to detect if a microphone is connected to an iPod touch G2 via AudioSessionGetProperty / kAudioSessionProperty_AudioInputAvailable , but I have not seen any articles related to detection of headphones connected to an iPod touch G1. To review: iPod touch G2 hardware differs from iPod touch G1 hardware in the following ways: iPod touch G2 has an internal speaker iPod touch G2 is able to use microphone off of headphone port I have an app that needs to play sound to