Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using a speaker set connected through the green audio jack and a headset which I connect through USB. My problem is that every time I connect/disconnect my headset, I have to go through a lot of settings/restart some programs to make the sound go through the speakers again.

What I want is to have audio play through the headset when it's connected, but if I disconnect the headset, I want the audio to automatically play through the speakers.

For example, if I connect/disconnect the headset while listening to music, I have to restart the application to make the music play through the correct speaker/headset, and it shouldn't be that inconvenient.

(I found this somewhat relevant topic, but the problem is that it doesn't really give an answer. (Also, it is 2 years old.))

share|improve this question
    
My windows 7 laptop plays sound through the internal speakers, but when I plug a pair of headphones in it only plays through the headphones. I have realtek high definition audio drivers, but I don't know how it is set up. –  starbeamrainbowlabs Dec 9 '12 at 12:42
add comment

3 Answers 3

up vote 2 down vote accepted
+50

I don't know of any automatic solution, but here are several hotkey-using solutions you could look at :

How to change the default audio device with a hotkey
A AutoHotKey script to switch between audio sources

Soundswitch
Switch between headphones and speakers (have a look at version 3)

The thread Audio playback through headphones and speakers has some ideas that may be worth trying.

share|improve this answer
add comment

AHK usb device detection

this one will allow you to detect a specific usb device and run ... when that happens.

there is a util for usb flash drives to auto run a script not sure if it will do the same for the audio device. you could combine the sound switch harrymc suggested with the detction routine to hopefully switch automagically.

usb media util

share|improve this answer
add comment

It is not possible due to architectural design. The application playing the sound receives a direct handle to the output device (which enables, among others, sound over RDP) and when the device is disconnected, the program doesn’t have anything to play sound to. It could be theoretically possible to virtualise the audio stack to enable switching output devices, but it would be infeasible due to latency issues.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.