Detecting Headphones

  • Thread starter Thread starter Mugunth
  • Start date Start date
M

Mugunth

Is there anyway to detect whether the user has plugged in his
headphones using C#?
How?
 
Mugunth said:
Is there anyway to detect whether the user has plugged in his
headphones using C#?
How?

Even the soundcard probably doesn't know. I know that laptops mute their
speakers when the headphones are plugged in, but do they do it under CPU
control, or do they just have switch contacts built into the headphone jack
the way radios do?
 
Even the soundcard probably doesn't know. I know that laptops mute their
speakers when the headphones are plugged in, but do they do it under CPU
control, or do they just have switch contacts built into the headphone jack
the way radios do?

FWIW, if I plug headphones into my computer I get a volume control
dialog opening automatically. So some soundcards do in fact know if
something has been plugged in or not. How this is done, I'm not sure,
and I don't even know if it's a feature on all soundcards.

The "card" in question is an intel one integrated onto the motherboard.
 
FWIW, if I plug headphones into my computer I get a volume control
dialog opening automatically.  So some soundcards do in fact know if
something has been plugged in or not.  How this is done, I'm not sure,
and I don't even know if it's a feature on all soundcards.

The "card" in question is an intel one integrated onto the motherboard.

Hi,

I bet it's something implemented on that particular soundcard. Do a
search by that card in Intel website
 
Andy said:
FWIW, if I plug headphones into my computer I get a volume control
dialog opening automatically. So some soundcards do in fact know if
something has been plugged in or not. How this is done, I'm not sure,
and I don't even know if it's a feature on all soundcards.

The "card" in question is an intel one integrated onto the
motherboard.

You could look at new Microsoft.DirectX.DirectSound.Device().SpeakerConfig
and see if the driver changes it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top