Is there any way to determine, programmatically when headphones are plugged into the computer?
Essentially, I just want to write a simple tool that will mute my sound unless headphones are plugged in. Is this even possible?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…