Native alsa did break on many websites since firefox-74 (depends on how they are using audio, one way works and the other doesn't). That's why I recommend apulse instead (related bug). That there would be more issues or removal in the future also wouldn't surprise me, so even if it gets fixed moving to apulse may make more sense.mike155 wrote:I use www-client/firefox-68.7.0-r1 and it works perfectly fine with ALSA..
Code: Select all
# if the apulse libs are available in MOZILLA_FIVE_HOME then apulse
# doesn't need to be forced into the LD_LIBRARY_PATH
if use pulseaudio && has_version ">=media-sound/apulse-0.1.12-r4" ; then
einfo "APULSE found - Generating library symlinks for sound support"
Well, you make it sound like it barely works and it's pretty hard to find some site where sound works.Ionen wrote:That aside, native alsa should still somewhat work rather than not at all (and should be fine with ESR)
Really? Then probably I'm doing something wrong, because with -pulseaudio (and without apluse) I get no audio on youtube (actually I cannot find any website that sound works). microphone use seems broken as well.kajzer wrote:Well, you make it sound like it barely works and it's pretty hard to find some site where sound works.
AFAIK, there's only one site with a problem (soundcloud) if there are more sites with a problem I would like to know.
I bet even that site could be solved if there's enough determination.

Yeah, firefox 75 as well, first time I tried it didn't work on any site, later I figured it's because I had 'rate 96000' in .asoundrc, so you might want to check your config file.powettpt wrote:Really? Then probably I'm doing something wrong, because with -pulseaudio (and without apluse) I get no audio on youtube (actually I cannot find any website that sound works). microphone use seems broken as well.
In firefox 75, at least.
Are you able to use the mic and play sound on youtube/vimeo/ videos websites?
it used to be empty. now it is very basic, just dealing with my card0 being a dummy device:kajzer wrote: Paste it here so maybe I can try to reproduce it.
Code: Select all
pcm.!default {
type hw
card 2
}
ctl.!default {
type hw
card 2
}
Code: Select all
defaults.pcm.card 2
defaults.ctl.card 2Code: Select all
pcm.onboard_card {
type hw
card 2
format S32_LE
rate 48000
}
pcm.dmixplug {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix # multi-stream mixing
ipc_key 4897
slave {
pcm "onboard_card"
channels 2 # adjust as necessary (e.g. 8 for 7.1 audio)
format S32_LE
rate 48000
period_time 0
period_size 1024 # double if you notice increased CPU load or crackling
buffer_time 0
buffer_size 8192 # some applications do not like smaller buffers
}
}
pcm.!default pcm.dmixplugCode: Select all
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.1.2/work/alsa-lib-1.2.1.2/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
arecord: main:828: audio open error: Invalid argument
unfortunately the microphone doesn't work for me with just ALSA : (mike155 wrote:I emerged and installed Firefox 68, 75 and 76 (www-client/firefox).
All three versions of Firefox work perfectly fine with ALSA. apulse and pulseaudio are NOT required. Neither for building Firefox, nor for running Firefox. :)
didn't work for me. firefox still tries to pull in pulseaudio:Ionen wrote:firefox: install media-sound/apulse with USE=sdk, then build firefox with USE="pulseaudio" and it shouldn't try to install pulseaudio
Code: Select all
# emerge -auDU firefox
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] net-libs/libasyncns-0.8-r4 USE="-debug -doc"
[ebuild N ] media-libs/webrtc-audio-processing-0.3.1 USE="-static-libs"
[ebuild N ] media-libs/speexdsp-1.2_rc3-r2 USE="-static-libs" CPU_FLAGS_X86="sse sse2"
[ebuild N ] dev-lang/orc-0.4.31 USE="-gtk-doc -static-libs -test"
[ebuild N ] media-sound/pulseaudio-13.0 USE="X alsa alsa-plugin asyncns caps dbus elogind gdbm glib gtk orc qt5 sox ssl udev webrtc-aec -bluetooth -doc -equalizer -gconf -ipv6 -jack -libressl -libsamplerate -lirc -native-headset -ofono-headset (-oss) -realtime (-selinux) (-system-wide) -systemd -tcpd -test -zeroconf"
[ebuild N ] media-plugins/alsa-plugins-1.2.2 USE="ffmpeg mix pulseaudio usb_stream -arcam_av -debug -jack -libsamplerate -oss -speex"
[ebuild R ] www-client/firefox-68.10.0 USE="pulseaudio*"
[blocks B ] media-sound/pulseaudio ("media-sound/pulseaudio" is blocking media-sound/apulse-0.1.12-r4)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(media-sound/pulseaudio-13.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
>=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_riscv_lp64d(-)?,abi_riscv_lp64(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=media-sound/pulseaudio-2.1-r1[abi_x86_32(-)]) required by (media-plugins/alsa-plugins-1.2.2:0/0::gentoo, ebuild scheduled for merge) USE="ffmpeg mix pulseaudio usb_stream -arcam_av -debug -jack -libsamplerate -oss -speex"
media-sound/pulseaudio required by (www-client/firefox-68.10.0:0/0::gentoo, ebuild scheduled for merge) USE="dbus gmp-autoupdate openh264 pulseaudio screenshot startup-notification system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-sqlite system-webp -bindist -clang -custom-cflags -custom-optimization -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto (-pgo) (-selinux) -test -wayland -wifi" CPU_FLAGS_X86="-avx2" L10N="en-CA -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -ur -uz -vi -xh -zh-CN -zh-TW"
(media-sound/apulse-0.1.12-r4:0/0::gentoo, installed) pulled in by
media-sound/apulse required by @selected Yeah I see why, ESR firefox-68 is different. I was looking at ~testing firefox when I said that. Don't know why but the apulse[sdk] dep to replace pulseaudio at build time isn't present on 68.10.0, but it's there for 78.0.2.nsoveiko wrote:didn't work for me. firefox still tries to pull in pulseaudio:
are you sure? these are from the firefox-68.10.0.ebuild:Ionen wrote:Yeah I see why, ESR firefox-68 is different. I was looking at ~testing firefox when I said that. Don't know why but the apulse[sdk] dep to replace pulseaudio at build time isn't present on 68.10.0, but it's there for 78.0.2.nsoveiko wrote:didn't work for me. firefox still tries to pull in pulseaudio:
Sorry for the confusion.
Code: Select all
RDEPEND="${CDEPEND}
jack? ( virtual/jack )
openh264? ( media-libs/openh264:*[plugin] )
pulseaudio? (
|| (
media-sound/pulseaudio
>=media-sound/apulse-0.1.9
)
)
selinux? ( sec-policy/selinux-mozilla )"Code: Select all
# if the apulse libs are available in MOZILLA_FIVE_HOME then apulse
# doesn't need to be forced into the LD_LIBRARY_PATH
if use pulseaudio && has_version ">=media-sound/apulse-0.1.9" ; then
einfo "APULSE found - Generating library symlinks for sound support"
local lib
pushd "${ED}"${MOZILLA_FIVE_HOME} &>/dev/null || die
for lib in ../apulse/libpulse{.so{,.0},-simple.so{,.0}} ; do
# a quickpkg rolled by hand will grab symlinks as part of the package,
# so we need to avoid creating them if they already exist.
if [[ ! -L ${lib##*/} ]] ; then
ln -s "${lib}" ${lib##*/} || die
fi
done
popd &>/dev/null || die
fiCode: Select all
defaults.pcm.card 2
defaults.ctl.card 2Code: Select all
aplay --list-devicesYes, there's two parts to PA dependencies, there's the RDEPEND (runtime) and DEPEND (used for building, where it looks for pulseaudio headers and libraries to link with).nsoveiko wrote:are you sure? these are from the firefox-68.10.0.ebuild:
Code: Select all
pulseaudio? ( media-sound/pulseaudio )Code: Select all
pulseaudio? (
|| (
media-sound/pulseaudio
>=media-sound/apulse-0.1.12-r4[sdk]
)
)
