i-rinat / apulse

PulseAudio emulation for ALSA
MIT License
609 stars 35 forks source link

interferences with google-chrome #15

Open pierrenopicnic opened 10 years ago

pierrenopicnic commented 10 years ago

hi I have an amd64 gentoo system. I have never installed pulseaudio. I have install apulse, and skype is working back again (thanks a lot!). but since google-chrome is mute! firefox, vlc, everything else works, except google-chrome. Could it be because somehow google-chrome believes that I have pulseaudio installed? any suggestion to fix that?

here is the new error message that popups each time I read a sound in google-chrome ERROR:audio_manager_base.cc(250)] Invalid audio output parameters received; using fake audio path. Channels: 2, Sample Rate: 0, Bits Per Sample: 16, Frames Per Buffer: 1024

and obviously i'm not the only one ... http://forums.gentoo.org/viewtopic-p-7649684.html

i-rinat commented 10 years ago

any suggestion to fix that?

By default substitution libraries are installed into /usr/lib/apulse, and apulse script at run time adds that path to LD_LIBRARY_PATH, and then launches application. I do so because apulse have very small subset of API implemented, only enough to make Skype work. Gentoo ebuild installs libraries system-wide, thus making Chrome think it runs on a PulseAudio equipped installation. It tries to use it and fails.

Change installation path, and use apulse script to launch Skype:

apulse skype
jauhien commented 10 years ago

Yes, I will probably change the installation path in Gentoo. Thanks for pointing this out. Anyway I see, I need to do a version bump as well. )

jauhien commented 10 years ago

@pierrenopicnic: please, file a bug report to the Gentoo bugzilla, so I remember. ;-)

pierrenopicnic commented 10 years ago

done https://bugs.gentoo.org/show_bug.cgi?id=529098

ryanpcmcquen commented 9 years ago

The Slackware build has a lib path option (as the global libs are good in some situations).

i-rinat commented 9 years ago

as the global libs are good in some situations

They eliminate need of launcher script, indeed. But that way one declare apulse being full PulseAudio implementation while it is not.

The more serious people treat apulse, the more Don-Quixotic I feel. :-)

stalkerg commented 9 years ago

Но всё же, было бы классно иметь полную (насколько это возможно) реализацию PA API работающую поверх dmix и не создающую лишних сущностей как PulseAudio. Кроме skype я бы выделил ещё chrome и Steam игры, для чего нужен apulse. В идеале конечно хотелось бы научит dmix самому управлять громкостью per process.

i-rinat commented 9 years ago

(I understand Russian better than English, but don't think others do too. So it's better to keep discussion in English if possible.)

ryanpcmcquen commented 9 years ago

I have made a lot of games that allegedly require pulseaudio, work only with apulse. So, I think even though you didn't intend it to be so powerful, it is. :+1: