Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
want to try ALSA once more need help.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Tue Oct 26, 2021 3:04 am    Post subject: Reply with quote

NeddySeagoon wrote:
turtles,

I only have ALSA.
I believe that firefox-bin needs pulse but home made firefox works with alsa here.


yes you are right. FF stopped supporting ALSA from version 53 thats what the wiki says. but i think i removed the pulseaudio form the -bin and it still worked.
im not 100% and if it did it was like 10-12 months ago. and i think something has happen an update or something so it might not work now.
but i do complie firefox myself now. i was scared at first for i thought it would take 20 hours like with chrome stuff. but it only took 45 min notmpfs and -j4 on my i7 7700 :)
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1657

PostPosted: Tue Oct 26, 2021 5:26 pm    Post subject: Reply with quote

Just out of curiosity do either of you use google voice or any other web based VIOP in your firefox/ALSA setups?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Tue Oct 26, 2021 5:36 pm    Post subject: Reply with quote

no i have used Jitsi, matrix and discord in the borwser
for talking with other people.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Tue Oct 26, 2021 6:09 pm    Post subject: Reply with quote

turtles,

I tried to use MS Teams once but all I get is
dmesg:
[37711.136841] traps: ThreadPoolForeg[10829] trap invalid opcode ip:565449e176d3 sp:7fe3b7bd83f0 error:0 in teams[5654494e9000+5fc7000]

Its an evil binary blob, so Meh.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1657

PostPosted: Tue Oct 26, 2021 7:07 pm    Post subject: Reply with quote

Thats cool that it works for you.
I definitely could not get google voice to work back in 2017 without pulseaudio
Here is the old thread on Firefox dropping ALSA
https://forums.gentoo.org/viewtopic-t-1060964-start-25-postdays-0-postorder-asc-highlight-.html

I'd be curious who at mozilla is working on the ALSA back end.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Wed Dec 15, 2021 4:11 am    Post subject: Reply with quote

I've found Google Voice works normally with firefox and firefox-bin on my alsa only system.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1657

PostPosted: Fri Dec 17, 2021 4:37 pm    Post subject: Reply with quote

I am glad ALSA only Firefox (cubeb) works again, sorta
https://bugzilla.mozilla.org/show_bug.cgi?id=1650131
https://bugzilla.mozilla.org/show_bug.cgi?id=1716249

They dont close the ALSA bugs as a wontfix, but only will accept patches.
However they List its status as Teir-3
"Tier-3: Maintainers/patches accepted. Status unclear."

If I was using a ALSA only firefox I would ask mozilla to move it to Teir-2 that means
Firefox still does not officially support, as in paid developer time, anything other than pluseaudio, but they intend to accept community patches
"Tier-2: Actively maintained by contributors. CI coverage appreciated."
https://github.com/mozilla/cubeb/wiki/Backend-Support
That would be a step in the right direction.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Sat Dec 18, 2021 10:06 am    Post subject: Reply with quote

oo i see.
yea teir-2 sounds better,
i do compile firefox-ESR it works fine for me.
im not sure if voice and so on work as it should without apluse.
but i mostly listen to music and so on and use the discord-bin for that, that needs apulse though. but it seems work fine.
still need to do some more soft fixes to setup groups to use a softlevel audio limiter.
then i can have fake audio control and have it set to diffrent levels and just start the package that way,
i did look atlittle on but not tried it yet it. its abit of a hack fix as my friend told me but it should do the job.
i have been on windows alot lately sense i did start to play a game that needs it sadly.
maybe i should install gentoo on my 2014 laptop hhhh and have that to play around with for i really do miss linux in my life.
there are some stuff i do that really needs linux due to the bad supposrt windows has for older software-

but nice to hear it has some kind of support though ALSA is not forgetten even though its only teir-3
maybe they put it to teir-3 for its not to much they care about as in with there time...
so if its teir-3 they have a feeling that most of the patches will be really good quality and dont need as much time to look and check for bad code.
its only my guess i can buy it. but i dont know if its really works like that.
if not please correct me im allways intressted in learning more things
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sat Dec 18, 2021 2:20 pm    Post subject: Reply with quote

Yes, apulse is needed. No problem.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1657

PostPosted: Sun Dec 19, 2021 12:18 am    Post subject: Reply with quote

I think if you run apluse, then your using firefox's pluseaudio backend.
To test firefox in pure ALSA mode you would need a different configuration, I think....

Shaorin wrote:
oo i see.
maybe they put it to teir-3 for its not to much they care about as in with there time...


Yeah firefox has a setting called "send technical information to mozilla" or something like that
that I think is disabled by default on Gentoo.
If enabled it says "Firefox sends data about your Firefox version and language; device operating system and hardware configuration"
https://www.mozilla.org/en-US/privacy/firefox/#health-report

For some reason they were using the statistics from this to see what sound setups people used.
I dont know if Ubuntu or redhat or ? distro enables this by default
but it gives them the impression that nobody uses ALSA only systems.
And by ALSA only I mean no apluse.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Dec 19, 2021 3:08 am    Post subject: Reply with quote

turtles: Is there a reference for all that or do you have special knowledge? All I know is that it works and I don't have to fuss with it. It worked with firefox and it works with firefox-bin. It works so well that it's a joy to use.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1657

PostPosted: Mon Dec 20, 2021 1:11 am    Post subject: Reply with quote

figueroa wrote:
turtles: Is there a reference for all that or do you have special knowledge?

Just reading the source.
Firefox's audio libraries are called Cubeb:
https://github.com/mozilla/cubeb#readme
It has a ALSA, Jack, Pulseaudio and many other backends you can see them here:
https://github.com/mozilla/cubeb/wiki/Backend-Support
There are at least 3 combinations of installs / use flags related to this isue:


  • If you use firefox-bin, look at the ebuild for firefox-bin
    it does this:
    Code:
    CDEPEND="alsa? (
          !pulseaudio? (
             media-sound/apulse
          )
       )"

    So if you use firefox-bin no matter what USE flag you choose your using its 'pulseaudio' Cubeb backend.
    Even if you have
    Code:
    USE="alsa -pulseaudio"


  • Building firefox from source, If you already have installed media-sound/apulse with USE=sdk, then build firefox with USE="pulseaudio", you will be using
    the 'pulseaudio' Cubeb backend in firefox, and the media-sound/apulse provides the missing 'pluseaudio' components.
    And pulseaudio does not get installed on your system.

  • If you build firefox from source with -pluseaudio then the ebuild does this:
    Code:
       # force the deprecated alsa sound code if pulseaudio is disabled
       if use kernel_linux && ! use pulseaudio ; then
          mozconfig_add_options_ac '-pulseaudio' --enable-alsa
       fi


Only in this case#3 are you truly using a pure ALSA Cubeb backend in firefox.
And only these folks are testing the ALSA backend for bugs.

Links:
https://forums.gentoo.org/viewtopic-p-8453092.html#8453092

https://bugzilla.mozilla.org/show_bug.cgi?id=1624110
https://blog.mozilla.org/webrtc/firefoxs-audio-backend/
https://github.com/i-rinat/apulse

figueroa wrote:

All I know is that it works and I don't have to fuss with it. It worked with firefox and it works with firefox-bin. It works so well that it's a joy to use.

Well that's what is most important.
:D
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Mon Dec 20, 2021 3:09 am    Post subject: Reply with quote

turtles wrote:
I think if you run apluse, then your using firefox's pluseaudio backend.
To test firefox in pure ALSA mode you would need a different configuration, I think....

Shaorin wrote:
oo i see.
maybe they put it to teir-3 for its not to much they care about as in with there time...


Yeah firefox has a setting called "send technical information to mozilla" or something like that
that I think is disabled by default on Gentoo.
If enabled it says "Firefox sends data about your Firefox version and language; device operating system and hardware configuration"
https://www.mozilla.org/en-US/privacy/firefox/#health-report

For some reason they were using the statistics from this to see what sound setups people used.
I dont know if Ubuntu or redhat or ? distro enables this by default
but it gives them the impression that nobody uses ALSA only systems.
And by ALSA only I mean no apluse.


when i said firefox works with ALSA i mean with no apulse,
i only and only use apulse so i can speak and hear on discord. but if i dont have it it cant see any audio devices.
and it if i want to and dont use wine or proton like any gameing.
then i can use JACK to pipe the sound deivces to firefox when im in a call and still be able to speak.
but when i open JACK all my wine software stops working. for its like the JACK takes the sound devices and hide it from wine.
i thought wine had a JACK useflag but it does not... weirdly i do have jack flag in my make.conf
so this is the reason i use apulse.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
Shaorin
n00b
n00b


Joined: 26 Aug 2020
Posts: 23
Location: Sweden

PostPosted: Mon Dec 20, 2021 3:13 am    Post subject: Reply with quote

[quote="


  • If you use firefox-bin, look at the ebuild for firefox-bin
    it does this:
    Code:
    CDEPEND="alsa? (
          !pulseaudio? (
             media-sound/apulse
          )
       )"

    So if you use firefox-bin no matter what USE flag you choose your using its 'pulseaudio' Cubeb backend.
    Even if you have
    Code:
    USE="alsa -pulseaudio"


  • Building firefox from source, If you already have installed media-sound/apulse with USE=sdk, then build firefox with USE="pulseaudio", you will be using
    the 'pulseaudio' Cubeb backend in firefox, and the media-sound/apulse provides the missing 'pluseaudio' components.
    And pulseaudio does not get installed on your system.

  • If you build firefox from source with -pluseaudio then the ebuild does this:
    Code:
       # force the deprecated alsa sound code if pulseaudio is disabled
       if use kernel_linux && ! use pulseaudio ; then
          mozconfig_add_options_ac '-pulseaudio' --enable-alsa
       fi


Only in this case#3 are you truly using a pure ALSA Cubeb backend in firefox.
And only these folks are testing the ALSA backend for bugs.
[/quote]

oo thanks i will look. i dont think have any of the sdk useflags i know i only support alsa on my system in the make.conf
but i think apulse dont have any useflags at all.
and even if i unmerge it i still have sound on firefox so i guess it dont use that backend for me. :)
but its intressting good to keep in mind.
_________________
sorry if i makes some typos or missunderstand i have dyslexsia and asperger's syndrom thanks for the understanding.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Dec 20, 2021 3:21 am    Post subject: Reply with quote

turtles wrote:
...
Just reading the source.
...

Thank you for the very informative reply. It's fairly useless for me to pretend to read source code. I have extraordinary limited programing knowledge and abilities, though I'm experienced in shell scripting. I appreciate those of you who can do that.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
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
Goto page Previous  1, 2
Page 2 of 2

 
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