Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: GNUser on August 12, 2020, 08:53:43 AM

Title: [Solved] sound in firefox without pulseaudio
Post by: GNUser on August 12, 2020, 08:53:43 AM
If you like alsa, dislike pulseaudio, and need sound in firefox, then you will love apulse!
apulse is a wrapper script that provides "pulseaudio emulation for alsa" to the wrapped application only. It is very easy to use:

Code: [Select]
$ tce-load -wi apulse
$ apulse firefox

I'm a grumpy dinosaur (don't like pulseaudio or dbus), so my calls to firefox are actually like this:
Code: [Select]
$ apulse dbus-run-session firefoxWith this command, I get sound without pulseaudio and dbus goes away when firefox closes. Pretty sweet.

I hope this helps other grumpy dinosaurs.

P.S. apulse is a brand-new extension and will be in the TCL11 64bit repository soon. If you use a different version of TCL, apulse is trivial to compile (see here: https://github.com/i-rinat/apulse).
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: GNUser on August 12, 2020, 11:36:02 AM
I decided to bite the bullet and submit  apulse  for several other TCL versions: TCL11-32bit, TCL10-64bit, and TCL10-32bit. Cheers!
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: hiro on August 12, 2020, 12:04:02 PM
i've been using an alpine chroot lately for firefox as there they compiled against alsa.
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: aus9 on August 14, 2020, 07:53:35 PM
@GNUser

Altho I use apulse which is why I submitted TC64 11x, I have no problem and think it might be more logical? if you become the downstream maintainer of it for any fixes/updates if you care to. Forgive me if it appears I am giving you more work   ;D
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: udo on September 01, 2020, 06:30:01 AM
brilliant - thanks a lot for the apulse extension(s)!
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: neonix on June 08, 2024, 03:34:58 AM
I use "apulse firefox" with FF102esr in TC14_32 and discover that apulse require alsa-config.tcz to work with FF. Could someone confirm this and add alsa-config.tcz to apulse.tcz.dep file?
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: Leee on June 09, 2024, 02:24:02 AM
I wrote a little script that, if both firefox and apulse are loaded, edits the firedox reference in ~/.wbar to run apulse firefox instead.  It has an undo capability as well, though I've never had occasion to use that IRL.
Title: Re: [Solved] sound in firefox without pulseaudio
Post by: neonix on June 11, 2024, 11:05:09 AM
There could be also two icons in wbar. One for alsa-firefox and the second for normal firefox.