I'm trying to detect if the headphones are plugged in on Windows. I've already tried DirectSound and the NAudio library and have not had any success. Does anyone have any suggestions?
NOTE: this question is a duplicate of this question, but the answer to that question didn't contain any code samples or tutorials.