VectorLinux

The nuts and bolts => Multimedia & Games => Topic started by: sledgehammer on March 23, 2013, 05:17:14 pm

Title: can't get youtube to play audio on usb headphones
Post by: sledgehammer on March 23, 2013, 05:17:14 pm
Doesn't matter whether opera, firefox, or chrome, youtube plays through my laptop's onboard speakers rather than my usb headphone.  Linphone and twinkle use usb headphones, but most online videos won't. 

To avoid bothering others in the room I have to plug in my analog headphones and turn down volume on laptop speaker.

Any suggestions on how to get sound through usb headphones rather than onboard speakers?

Title: Re: can't get youtube to play audio on usb headphones
Post by: retired1af on March 24, 2013, 03:52:38 am
USB headphones and Linux have had a rather long and illustrious love/hate relationship. It's hit and miss as to what works and what doesn't.

It's been my experience that pulse audio does a better job of handling USB than alsa does. I do believe pulseaudio is in the repo. Give it a shot.
Title: Re: can't get youtube to play audio on usb headphones
Post by: sledgehammer on March 24, 2013, 09:52:34 am
Thanks retired1af,

I think pulseaudio might do the trick.  Its in the repository as you suggested.

I added pulseaudio volume control, also in the repository.  But the controls don't work. 

According to slackbuilds.org, I need libatomic_ops for pulseaudio, which is not in the repository.

Also, according to slackbuilds, I need a pulse group:

Quote
Pulseaudio will need a pulse group/user to run. You can add one with
# groupadd -g 214 pulse
# useradd -u 214 -g pulse -d /var/lib/pulse pulse

However, #groupadd -g 214 pulse brings on:

Quote
vector://home/johwhi
root:# groupadd -g 214 pulse
groupadd: GID '214' already exists
vector://home/johwhi
root:# useradd -u 214 -g pulse -d /var/lib/pulse pulse
useradd: group 'pulse' does not exist
vector://home/johwhi

So, I've got some learning to do when time permits.

Title: Re: can't get youtube to play audio on usb headphones
Post by: retired1af on March 24, 2013, 11:04:39 am
Call it something other than "pulse".