Please support VectorLinux!

Author Topic: can't get youtube to play audio on usb headphones  (Read 2596 times)

sledgehammer

  • Vectorian
  • ****
  • Posts: 1451
can't get youtube to play audio on usb headphones
« on: March 23, 2013, 04: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?

VL7.0 xfce4 Samsung RF511

retired1af

  • Packager
  • Vectorian
  • ****
  • Posts: 1280
Re: can't get youtube to play audio on usb headphones
« Reply #1 on: March 24, 2013, 02: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.
ASUS K73 Intel i3 Dual Core 2.3GHz

sledgehammer

  • Vectorian
  • ****
  • Posts: 1451
Re: can't get youtube to play audio on usb headphones
« Reply #2 on: March 24, 2013, 08: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.

VL7.0 xfce4 Samsung RF511

retired1af

  • Packager
  • Vectorian
  • ****
  • Posts: 1280
Re: can't get youtube to play audio on usb headphones
« Reply #3 on: March 24, 2013, 10:04:39 am »
Call it something other than "pulse".
ASUS K73 Intel i3 Dual Core 2.3GHz