You are not logged in.

#1 2013-05-02 15:34:19

eepp
Member
Registered: 2013-05-02
Posts: 6

google-chrome ignores ~/.asoundrc but chromium does not

Hi everyone.

I have an Arch setup with chromium and AUR's google-chrome installed.

Here is the content of ~/.asoundrc:

pcm.!default {
	type hw
	card 1
	device 0
}
ctl.!default {
	type hw
	card 1
	device 0
}

Flash Player within chromium seems to understand this because sound is coming out of the right sound card.

However, Flash Player within google-chrome is still outputting to hw:0,0.

chromium indicates "Adobe Flash Player - Version: 11.2 r202" while google-chrome shows "Adobe Flash Player (2 files) - Version: 11.7.700.169" (in chrome://plugins).

I don't have any PulseAudio-related package installed.

Does anybody know this issue?

Thank you.

Offline

#2 2013-05-02 18:19:29

eepp
Member
Registered: 2013-05-02
Posts: 6

Re: google-chrome ignores ~/.asoundrc but chromium does not

Solved.

All this was only because I had a running background instance of google-chrome running and changes to my ALSA conf. file didn't apply.

Everything is working fine now, but sound lags unless you calibrate the audio buffer size properly with the --audio-buffer-size flag.

Offline

#3 2013-05-02 19:52:08

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: google-chrome ignores ~/.asoundrc but chromium does not

That's interesting. Maybe google-chrome is outputting to "surround20" rather than "default"?

I recommend a better method for setting the default card, especially since your current config prevent dmix - e.g.:

defaults.pcm.card 1
defaults.ctl.card 1

I looked at /usr/share/alsa/alsa.conf for inspiration.

Chromium's --audio-buffer-size was covered in a previous thread.

Offline

Board footer

Powered by FluxBB