You are not logged in.

#1 2014-12-06 05:49:56

dig23
Member
Registered: 2014-12-06
Posts: 4

Speaker test works, but no sound from Chrome

Just installed arch on a fresh system and installed ALSA related packages. Audio works in firefox but if I change the tab which is generating audio or even change the you tube video then it stops. After I restart the firefox it works again. While audio is playing by one source and I start speaker test, then the error says: Playback open error: -16,Device or resource busy.
Here is my ~/.asoundrc
pcm.!default {
  type plug
  slave {
    pcm "hw:1,0"
  }
}

I don't know .asoundrc or other alsa config options. Can anyone help me with this.

Offline

#2 2014-12-06 05:58:13

dig23
Member
Registered: 2014-12-06
Posts: 4

Re: Speaker test works, but no sound from Chrome

Also I restarted the machine and there is no difference, there is sound from Chrome but only once source at a time. sad

Offline

#3 2014-12-06 06:40:05

headkase
Member
Registered: 2011-12-06
Posts: 1,977

Re: Speaker test works, but no sound from Chrome

Try enabling dmix: https://wiki.archlinux.org/index.php/Alsa#Dmix

That will explicitly tell ALSA to mix channels instead of give exclusive access to one program at a time.

If that fails, and you don't mind it, you can also install a full sound server like pulseaudio.  If you do that then make sure to also install pulseaudio-alsa for legacy compatibility.

https://wiki.archlinux.org/index.php/Pulseaudio

Edit: dmix is supposed to be a default but try explicitly setting it.

Last edited by headkase (2014-12-06 06:40:31)

Offline

#4 2014-12-06 14:53:22

dig23
Member
Registered: 2014-12-06
Posts: 4

Re: Speaker test works, but no sound from Chrome

Thank for your input but no luck, I tried setting Dmix as well as pulse.
Also I noticed my sound card number changes after reboot, it was 0 earlier now its 2 sad
here is my aplay -L : http://pastebin.com/8L53uv2z
here is my lsmod | grep snd : http://pastebin.com/rw65AYw0
here is ls -l /dev/snd : http://pastebin.com/TfQrr4j2

Offline

#5 2014-12-09 23:13:12

dig23
Member
Registered: 2014-12-06
Posts: 4

Re: Speaker test works, but no sound from Chrome

Ok I managed to get sound from everywhere and solved the card switching problem by adding the card name instead of card number in the .asoundrc, yet there are two problems
1 - no dmix working, only first sound source goes through
2 - no audio from google hangouts, its audio setting cant detect a speaker / card + device to play audio through

Last edited by dig23 (2014-12-09 23:24:01)

Offline

Board footer

Powered by FluxBB