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:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / 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 »

Messages In This Thread
How to Detect If The External Audio Jack Is In Use? - by Quantum on 02-20-2009 at 11:49 PM
RE: How to Detect If The External Audio Jack Is In Use? - by Jarrod on 02-21-2009 at 01:18 AM
RE: How to Detect If The External Audio Jack Is In Use? - by Voldemort on 02-21-2009 at 02:26 AM
RE: How to Detect If The External Audio Jack Is In Use? - by Jesus on 02-21-2009 at 11:04 AM
RE: How to Detect If The External Audio Jack Is In Use? - by John Anderton on 02-21-2009 at 11:20 AM


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