What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » How to Detect If The External Audio Jack Is In Use?

How to Detect If The External Audio Jack Is In Use?
Author: Message:
Quantum
Disabled Account
*****

Away.

Posts: 1055
Reputation: -17
30 / Male / Flag
Joined: Feb 2007
O.P. How to Detect If The External Audio Jack Is In Use?
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.
No longer here.
02-20-2009 11:49 PM
Profile PM Find Quote Report
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
RE: How to Detect If The External Audio Jack Is In Use?
there maybe something you can talk to in vista with it's new mixer, but i doubt it's possible in xp

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














02-21-2009 01:18 AM
Profile E-Mail PM Find Quote Report
Voldemort
Veteran Member
*****

Avatar

Posts: 3504
Reputation: 49
– / – / Flag
Joined: Jul 2005
Status: Away
RE: How to Detect If The External Audio Jack Is In Use?
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....
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
[Image: ico-mollytrix16.gif]
02-21-2009 02:26 AM
Profile E-Mail PM Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Jul 2005
RE: How to Detect If The External Audio Jack Is In Use?
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.
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
02-21-2009 11:04 AM
Profile PM Find Quote Report
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
36 / Male / Flag
Joined: Nov 2004
Status: Away
RE: How to Detect If The External Audio Jack Is In Use?
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
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
02-21-2009 11:20 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On