(I know about switched (lifted) jacks, but they won't work in my case because I don't want to modify the existing jack. Please read on. )
Recently, I added one of those front panel "hubs" that fits in the 5.5 in. bay and places USB, firewire, card readers so they're accessible on the front of the PC. The device I installed is from Logisys:
This panel exports headphone audio via a mini-jack. I'd like to plug my headphones into that jack, and have it cut the output to the speakers. I have two similar systems equipped with an EPOX 8K9A2+ mother board. In one system, I'm using the on board AC97 audio, and in the other case an Audigy 2 sound card. Both sound cards behave similarly. They have a stereo line out which usually is plugged into amplified PC speakers, but also allows a nominal 30 ohm headphone.
What I'd like to do is build a widget that will connect the headphones to the line out when I plug the headphones into the multi-function front panel, and have the line out go to the amplified speakers otherwise. I can't easily use a switched mini-jack phone plug because that would require reworking the front panel.
Here's what I think this switch looks like:
swtich headphone --< panel