Kibbee
Kibbee

Reputation: 66122

Listen for events for device plugged into audio jack

Is there some way, hopefully in .Net, although I could mangle something together in C if necessary, to listen for an event when something is plugged into the headphone jack in Windows 7? To put this into perspective, When I plug in my headphones, Windows is aware, and shows me a little bubble alerting me that there was something plugged into the audio jack. I was looking to write a program that would monitor if headphones were plugged in, and if so, unmute the audio. When the headphones are removed, the auto should again be muted. Is it possible to listen for events on the audio jack?

Upvotes: 2

Views: 1662

Answers (1)

SLaks
SLaks

Reputation: 887453

You can use endpoint device events.

Upvotes: 1

Related Questions