Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Apulse/Pulseaudio/ALSA-plugins circular dependency
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
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Tue Feb 12, 2019 10:51 pm    Post subject: [solved] Apulse/Pulseaudio/ALSA-plugins circular dependency Reply with quote

Hello boys, girls, whoever else.

Having a bad day with pulseaudio/firefox/chromium.

Long story short. Firefox dropped ALSA support.
Which means I can't use my Asus Xonair DX to max of its sample rate.

Both browsers depend on Pulseaudio to set up sample rates for video/audio content.

in absence of pulseaudio they set it defaults to sane values of 48000.
Which breaks system of me and bunch of other people out there.

Now I use apulse for one app i hate to use. Skype.

I'd love to use apulse as well with firefox and chromium, but in order for me to use it, those browsers need to have pulseaudio support.

Which triggers installation of pulseaudio.

Circle I can't avoid.

it goes like this:
firefox needs pulseaudio -> needs alsa-plugins pulseaudio enabled -> pulseadio conflicts with apulse.

I can trick system by removing apulse temporarily install pulseaudio and revert, but i would have to do it with every update of any of following: firefox + chromium + alsa-plugins.


I will look into possibly tweaking settings of browsers to increase sample rate, i posted chromium bug report, but apart from that... Any ideas?
_________________
Just a user.


Last edited by dimko on Wed Feb 13, 2019 1:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21318
Location: here

PostPosted: Wed Feb 13, 2019 7:05 am    Post subject: Reply with quote

I'm not sure if work but you can try to use package.provided
Code:
# echo "media-sound/pulseaudio" >> /etc/portage/profile/package.provided/pulseaudio
# echo "media-plugins/alsa-plugins -pulseaudio" >> /etc/portage/package.use/no-pulseaudio

Maybe with this you can install chromium with pulseaudio use flag and install also apulse
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Wed Feb 13, 2019 1:14 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I'm not sure if work but you can try to use package.provided
Code:
# echo "media-sound/pulseaudio" >> /etc/portage/profile/package.provided/pulseaudio
# echo "media-plugins/alsa-plugins -pulseaudio" >> /etc/portage/package.use/no-pulseaudio

Maybe with this you can install chromium with pulseaudio use flag and install also apulse


also had to add pulseaudio flags to firefox and chrome, but that did the trick!
Thanks!
++carma
_________________
Just a user.
Back to top
View user's profile Send private message
dimko
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2006
Posts: 126

PostPosted: Thu Feb 14, 2019 2:42 am    Post subject: Ok it did not work as expected. Reply with quote

First, after I compiled firefox and chromium - i realised postfactum, they for some reason did not support pulseaudio.

So i tried to compile again, and original circular dependency crapped in again.
Futher more, in order to compile firefox with pulse - you must have pulse dev libs installed. Guess what must be installed for that.

I gave up.

So i decided to go different direction.
If you cant beat them - join them.

So what I did - i minimised damage from pulseaudio.

I compiled pulse + firefox with pulse support.

Then I set up pulse to use my PCM device instead of ALSA driver.

And voila, all magically works, due to nothing compiled with pulse, i don't generally have any issues. I have not noticed so far,
_________________
Just a user.
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