Is there a way to detect if something is plugged into the headphone jack of a Mac using c or objective-c?
c
objective-c
Thanks