Shoutbox

How to Detect If The External Audio Jack Is In Use? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: How to Detect If The External Audio Jack Is In Use? (/showthread.php?tid=89310)

How to Detect If The External Audio Jack Is In Use? by Quantum on 02-20-2009 at 11:49 PM

Well, i've started a project in Visual Basic and i needed a few things.

Apon that list was to check if the external audio port is being used. I couldn't find away to do this at all. I googled around and it seems there is no way to do this at all anyway?

Can anyone confirm this?

(btw, i don't want to do anything to the hardware.)

Thanks.


RE: How to Detect If The External Audio Jack Is In Use? by Jarrod on 02-21-2009 at 01:18 AM

there maybe something you can talk to in vista with it's new mixer, but i doubt it's possible in xp


RE: How to Detect If The External Audio Jack Is In Use? by Voldemort on 02-21-2009 at 02:26 AM

i don't think it can be detected, as in most (if not all) computers there's no sensor or anything to detect if something is in it....


RE: How to Detect If The External Audio Jack Is In Use? by Jesus on 02-21-2009 at 11:04 AM

I know some audio drivers/hardware can do it, as on my dad's pc it could pop up a dialog box asking what kind of audio device (speakers, microphone, subwoofer, etc) you just plugged in.

Probably not possible with all soundcards though.


RE: How to Detect If The External Audio Jack Is In Use? by John Anderton on 02-21-2009 at 11:20 AM

quote:
Originally posted by Jesus
I know some audio drivers/hardware can do it, as on my dad's pc it could pop up a dialog box asking what kind of audio device (speakers, microphone, subwoofer, etc) you just plugged in.

Probably not possible with all soundcards though.
That's the audio jack itself having a contact sensor (its there in most new audio cards/mobo audio outputs and even in iPods/iPhones :))
That will just let you detect the presence of an audio jack in the port, not the flowing of data (ie. the transmission of an audio signal).

You could however use that (if you can hook yourself into doing that; the RealTek application for my mobo sure does that as does Jesus' dad's PC (:rofl: just realised Jesus' dad refers to *the god* :P.. nice to know even he has a PC :P)) along with the presence audio signal being transmitted (Windows Vista's tray sound icon shows this).
Presence of audio being played + Presence of a jack in an output port = data being sent out.

So as long as you can find API to hook into those two data sources you should be fine, assuming that the computer the client is going to run the application (you are making) will have audio jack sensors :)

I know this doesn't really help but hey, at least its theoretically possible 8-) Google for code samples :P