I am using dual monitors, and I want to be able to play a movie with sound on the TV (through vlc or something) and then play youtube or some games with my headphones on my laptop. Is there anyway I can choose what hardware each application uses?
I've tried using pavucontrol
, but am not given an option to change the output device.
EDIT:
jeggy@localhost:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC665 Analog [ALC665 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC665 Digital [ALC665 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
You could try PulseAudio Volume Control (pavucontrol ).
sudo apt-get install pavucontrol
Then select output device like so.
I think we are overlooking the simplest answer here, I think you only have one sound card, and correct me if I'm wrong... but don't you need to have more then one sound card to be able to use different output devices.
In your question you wants to play the sound from one program thru the headphone output witch is probable connected to your "only" sound card, and one programs sound thru the speakers connected to the computer, witch once again is probably the "only" sound card you have. And has far as I know you can't play one sound to the headphone output and another sound to another output on the same card.
I don't know witch version of ubuntu you are using but in the picture you have provided there is a tab called "Output Devices" you can check there if you have more then one sound card. I have provided a screen-shot of how my looks, observe that it lists 3 devices but i only have 2 there is two "Bulit-in Audio" and i can not play different sounds to them.
It might be clearer to run "aplay -l" in a terminal
Example:
yealds ...
there it is easier to see that there is two cards card 0 and card 1
So if you only have one soundcard my advice to you would be to buy a USB sound card and connect your headphones to that. and then use duffyducks or andys answer to choose output device
If it works in general it should look for vlc (version 2.0.1) like this as well:
As you can see in the screenshot, you may choose the audio device in vlc itself.
If that's also not possible, your PC might not be able to forward sound to your TV due to hardware limitations. To investigate further on this one would need the type of your sound card or graphics card, of your TV and of the connection between them like HDMI, DisplayPort and so on.
Well I cant tell you about UNITY as of now....But if you do not have a problem to switch to Gnome 3.4/3.2 then you directly get an extension on gnomeextensions
the extension enables you to control the volume of specific applications directly from the sound menu...!!! :)
Try this GNOME extention
I use it and it works...