Detecting if Headphones are Plugged in
April 25, 2007Implementing the Selective Muting feature took a bit longer then I expected. I found many posts on mailing lists asking the question of how to detect if something is plugged into the headphones jack, but no complete answer. So here’s how you do it.
Use the CoreAudio.framework, specifically CoreAudio/CoreAudio.h Unfortunately the documentation is [...]