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 (
just realised Jesus' dad refers to *the god*
.. nice to know even he has a PC
)) 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
Google for code samples