Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] google-chrome (stable): no audio in flash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
SemmZemm
n00b
n00b


Joined: 05 Jul 2013
Posts: 62
Location: France, Russia

PostPosted: Mon Oct 27, 2014 12:29 am    Post subject: [SOLVED] google-chrome (stable): no audio in flash Reply with quote

Hi,

I was using ALSA for a long time - audio in Flash worked.
After I switched to pulseaudio+ALSA (needed Skype) - audio in Flash worked.
Now I unmerged pulseaudio and I'm using apulse for Skype. Audio in Flash doesn't work.

I have this in my .asoundrc:
Code:

defaults.pcm.!card PCH
defaults.pcm.!device 0

which corresponds to my aplay -L output.

What am I doing wrong?

Flash in firefox works perfectly.


Last edited by SemmZemm on Mon Oct 27, 2014 12:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Mon Oct 27, 2014 1:06 am    Post subject: Reply with quote

Hi SemmZemm,

If PCH is the naming on your first soundcard, you probably don't need that .asoundrc as the defaults in /usr/share/alsa/alsa.conf will just default to hw:0,0.

Have you tried disabling Chrome's pepperflash and instead using the system installed flash plugin firefox is using?

Suggestion: using lsof grepping chrome and see what it's using from alsa (asound) and pulse. I'm not a pulse user, but having tsched=0 in /etc/pulse/* has caused issues for others before.

Google-chrome binary may be still trying to use pulse library routines (libpulse.so.0).
Back to top
View user's profile Send private message
SemmZemm
n00b
n00b


Joined: 05 Jul 2013
Posts: 62
Location: France, Russia

PostPosted: Mon Oct 27, 2014 3:18 am    Post subject: Reply with quote

Hi, Navar.
Navar wrote:
If PCH is the naming on your first soundcard, you probably don't need that .asoundrc as the defaults in /usr/share/alsa/alsa.conf will just default to hw:0,0.

It was my last resort. At the beginning I had no .asoundrc

Navar wrote:
Have you tried disabling Chrome's pepperflash and instead using the system installed flash plugin firefox is using?

I tried to disable pepperflash but I don't know how to enable system flash plugin. Isn't it because it's npapi. Chrome doesn't support npapi anymore, only ppapi

Navar wrote:
Suggestion: using lsof grepping chrome and see what it's using from alsa (asound) and pulse. I'm not a pulse user, but having tsched=0 in /etc/pulse/* has caused issues for others before.

Indeed, it uses both libasound.so and libpulse.so. Last one is installed with media-sound/apulse-0.1.2 which I need for skype.
Is there a way to force chrome use ALSA instead of apulse?
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Mon Oct 27, 2014 11:56 am    Post subject: Reply with quote

Build -pulseaudio chromium instead? Hexedit libpulse.so.0 in chrome binary? ...:twisted:
Back to top
View user's profile Send private message
SemmZemm
n00b
n00b


Joined: 05 Jul 2013
Posts: 62
Location: France, Russia

PostPosted: Mon Oct 27, 2014 12:30 pm    Post subject: Reply with quote

Navar wrote:
Build -pulseaudio chromium instead? Hexedit libpulse.so.0 in chrome binary? ...:twisted:


chromium.. I like too much some proprietary chrome stuff.

But thank you for the idea with hexedit. It works now. Works for me as temporary workaround. I hope it will be fixed in the future versions.
Thank you a lot!
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Mon Oct 27, 2014 12:37 pm    Post subject: Reply with quote

You're welcome. :) Although I was hoping to offer a better option than a hack. Maybe mark the topic solved as others may well benefit from this and/or find a better workaround.
Back to top
View user's profile Send private message
SemmZemm
n00b
n00b


Joined: 05 Jul 2013
Posts: 62
Location: France, Russia

PostPosted: Mon Oct 27, 2014 1:00 pm    Post subject: Reply with quote

Navar wrote:
You're welcome. :) Although I was hoping to offer a better option than a hack. Maybe mark the topic solved as others may well benefit from this and/or find a better workaround.


I'm not even sure it's a bug. Chrome tries to use pulse by default. I have apulse which is reduced version of pulse, installed just to support skype. It's possible that it doesn't support everything chrome needs.
Back to top
View user's profile Send private message
nopicnic
n00b
n00b


Joined: 12 Nov 2014
Posts: 2

PostPosted: Wed Nov 12, 2014 7:14 pm    Post subject: Reply with quote

well, I guess it is because I never had pulseaudio installed, and since I installed apulse (for the same reasons) sound doesn't work at all in google-chrome, and works just fine with everything else (skype, firefox, vlc,,...). I suggest to change the subject as it appears to be a apulse bug and to report it to apulse devs (they at least will identify the problem...)
Back to top
View user's profile Send private message
nopicnic
n00b
n00b


Joined: 12 Nov 2014
Posts: 2

PostPosted: Thu Nov 13, 2014 12:03 am    Post subject: Reply with quote

now it's on its way to be fixed :
https://github.com/i-rinat/apulse/issues/15
https://bugs.gentoo.org/show_bug.cgi?id=529098
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Sat Nov 15, 2014 10:32 am    Post subject: Reply with quote

Eh, maybe. One dev responded with the same suggestion I had to disable pulseaudio flag on chromium. But they overlooked anyone using the google-chrome blob depending on it (for those who don't wish the build chromium route). I think a better upstream solution (that Google most likely won't do) is a command line switch to disable pulseaudio use.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum