You are not logged in.

#1 2015-01-31 16:23:09

heri0n
Member
Registered: 2013-04-25
Posts: 13

Trouble with multiple sounds + youtube

Hello,
I'm having trouble playing multiple sounds at the same time.
For example I can play just sound from mplayer or mpg123 but not at the same time.  If I'm playing mplayer the sound will come out fine but trying to play a song in mpg123 it will segfault.
Sound from youtube does not work at all...

I have a NVidia GTX 660 hooked up to my HDMI TV.
Let the troubleshooting begin....
Thank you.

Offline

#2 2015-01-31 21:27:36

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: Trouble with multiple sounds + youtube

Did you look into the wiki?
https://wiki.archlinux.org/index.php/sound_system
( Especially at the troubleshooting sections from ALSA or pulseaudio; there's some info about simultanous playback, hdmi etc there - also different ways to test what exactly isn't working are described )

Do you have pulseaudio installed or are you just using ALSA / something else?

Offline

#3 2015-01-31 21:29:58

heri0n
Member
Registered: 2013-04-25
Posts: 13

Re: Trouble with multiple sounds + youtube

yes I've had a look there. tried the troubleshooting stuff but they didn't seem to work...

I have both ALSA and pulseaudio installed

Offline

#4 2015-01-31 21:39:34

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Trouble with multiple sounds + youtube

pacman -S pulseaudio-alsa


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#5 2015-01-31 21:57:28

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: Trouble with multiple sounds + youtube

If pulseaudio-alsa is installed and you didn't break the alsa configuration, then most applications shouldn't even be able to fight over the sound card.
Did you try renaming all (local AND per-user) asound.conf files and reinstalling the original from the pulseaudio-alsa package?

Offline

#6 2015-02-04 22:37:52

heri0n
Member
Registered: 2013-04-25
Posts: 13

Re: Trouble with multiple sounds + youtube

whoops wrote:

If pulseaudio-alsa is installed and you didn't break the alsa configuration, then most applications shouldn't even be able to fight over the sound card.
Did you try renaming all (local AND per-user) asound.conf files and reinstalling the original from the pulseaudio-alsa package?

I've installed pulseaudio-alsa already

i removed ~/.asounrdrc and /etc/asound.conf

and reinstalled pulseaudio-alsa

sound stopped working
I put
pcm.!default {
type hw
card 1
device 7
}

back in my .asoundrc and returned to my state of having one sound at a time (mplayer/mpg123) no youtube...

Offline

#7 2015-02-05 07:05:27

whoops
Member
Registered: 2009-03-19
Posts: 891

Re: Trouble with multiple sounds + youtube

Unless you're set on using plain ALSA for some reason, you probably should leave asoundrc alone and make pulseaudio use that card/device instead.

The pulseaudio examples page can be especially helpful here. From the looks of your asound.conf you seem to have figured out where your sound is supposed to go already - since that's working with ALSA...? What further steps to make pusleaudio use it did you try yet?
https://wiki.archlinux.org/index.php/Pu … o/Examples

archlinux wiki wrote:

Manually configuring PulseAudio to detect the Nvidia HDMI

Having identified which HDMI device is working, PulseAudio can be forced to use it via an edit to /etc/pulse/default.pa:

# load-module module-alsa-sink device=hw:1,7

where the 1 is the card and the 7 is the deivce found to work in the previous section

restart pulse audio

$ pulseaudio -k
$ pulseaudio --start

open the sound settings manager, make sure that under the hardware tab the graphics cards HDMI audio is set to "Digital Stereo (HDMI) Output" ( My graphics card audio is called "GF100 High Definition Audio Controller"

Then, open the output tab. There should now be two HDMI outputs for the graphics card. Test which one works by selecting one of them, and then using a program to play audio. For example, use VLC to play a movie, and if it does not work, then select the other.

Last edited by whoops (2015-02-05 07:07:02)

Offline

#8 2015-02-05 16:13:31

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: Trouble with multiple sounds + youtube

heri0n, if you ping me (Rasi) on freenode I am sure we can get pulseaudio running properly in a few minutes smile


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#9 2015-02-05 22:59:25

heri0n
Member
Registered: 2013-04-25
Posts: 13

Re: Trouble with multiple sounds + youtube

Just tried this... no luck
I've also removed my .asoundrc if that makes a difference.
I assume the # should be removed at the front which would make it a comment...

Waiting for a reply Rasi.. smile

whoops wrote:

Unless you're set on using plain ALSA for some reason, you probably should leave asoundrc alone and make pulseaudio use that card/device instead.

The pulseaudio examples page can be especially helpful here. From the looks of your asound.conf you seem to have figured out where your sound is supposed to go already - since that's working with ALSA...? What further steps to make pusleaudio use it did you try yet?
https://wiki.archlinux.org/index.php/Pu … o/Examples

archlinux wiki wrote:

Manually configuring PulseAudio to detect the Nvidia HDMI

Having identified which HDMI device is working, PulseAudio can be forced to use it via an edit to /etc/pulse/default.pa:

# load-module module-alsa-sink device=hw:1,7

where the 1 is the card and the 7 is the deivce found to work in the previous section

restart pulse audio

$ pulseaudio -k
$ pulseaudio --start

open the sound settings manager, make sure that under the hardware tab the graphics cards HDMI audio is set to "Digital Stereo (HDMI) Output" ( My graphics card audio is called "GF100 High Definition Audio Controller"

Then, open the output tab. There should now be two HDMI outputs for the graphics card. Test which one works by selecting one of them, and then using a program to play audio. For example, use VLC to play a movie, and if it does not work, then select the other.

Offline

#10 2015-02-05 23:25:55

heri0n
Member
Registered: 2013-04-25
Posts: 13

Re: Trouble with multiple sounds + youtube

Quick update... Everything works dandy with headphones.. just no sound out of my tv...

Offline

#11 2015-02-24 02:56:44

heri0n
Member
Registered: 2013-04-25
Posts: 13

Re: Trouble with multiple sounds + youtube

Can anyone help me please...
I'm trying to get off windows... don't make me go back to ubuntu... lol

Also whenever I try pavucontrol it just hangs on trying to connect...
and all my pactl commands give me connection refused
but pacmd works..

Offline

Board footer

Powered by FluxBB