Sqeaky,
I'm curious as to why this is not working in your case. I do not have Jack installed in Gentoo Linux Stable, just ALSA and PulseAudio, yet both Audacity and an online voice recorder (
https://online-voice-recorder.com/) in Firefox are able to record simultaneously from my laptop's built-in microphone (the laptop also has HDMI).
When I click on the Record buttons in both apps, PulseAudio Volume Control show two streams on its Recording tab, labelled 'Firefox: AudioCallbackDriver' and 'ALSA plug-in [audacity]: ALSA Capture'.
I'm no expert in ALSA and PulseAudio, but below are some details of my installation, including which USE flags are set, in case it is of help:
Code: Select all
$ eix -I alsa
[I] media-libs/alsa-lib
Available versions: 1.2.2-r1 1.2.3.2-r1 1.2.4 [M]~1.2.5 {alisp debug doc python +thread-safety ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="uclibc" PYTHON_SINGLE_TARGET="(+)python3_8 python3_9"}
Installed versions: 1.2.4(15:26:19 02/06/21)(thread-safety -alisp -debug -doc -python ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-uclibc" PYTHON_SINGLE_TARGET="python3_9 -python3_8")
Homepage: https://alsa-project.org/
Description: Advanced Linux Sound Architecture Library
[I] media-libs/alsa-topology-conf
Available versions: 1.2.2 1.2.3 1.2.4 [M]~1.2.5
Installed versions: 1.2.4(17:52:34 28/05/21)
Homepage: https://www.alsa-project.org
Description: ALSA topology configuration files
[I] media-libs/alsa-ucm-conf
Available versions: 1.2.2 1.2.3 1.2.4 [M]~1.2.5
Installed versions: 1.2.4(17:52:35 28/05/21)
Homepage: https://www.alsa-project.org
Description: ALSA ucm configuration files
[I] media-plugins/alsa-plugins
Available versions: 1.2.2 {arcam_av debug ffmpeg jack libsamplerate +mix oss pulseaudio speex +usb_stream ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 1.2.2(16:55:43 11/10/20)(ffmpeg mix pulseaudio speex usb_stream -arcam_av -debug -jack -libsamplerate -oss ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32")
Homepage: http://www.alsa-project.org/
Description: ALSA extra plugins
[I] media-sound/alsa-utils
Available versions: (0.9) 1.2.2 1.2.3 1.2.4 [M]~1.2.5
{bat doc +libsamplerate +ncurses nls selinux}
Installed versions: 1.2.4(0.9)(20:26:51 28/05/21)(libsamplerate ncurses nls -bat -doc -selinux)
Homepage: https://alsa-project.org/
Description: Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)
[I] media-sound/alsamixergui
Available versions: 0.9.0.1.2-r4
Installed versions: 0.9.0.1.2-r4(02:42:23 20/06/19)
Homepage: https://wiki.gentoo.org/wiki/No_homepage
Description: FLTK based amixer Frontend
Found 6 matches
Code: Select all
$ eix -I media-sound/pulseaudio
[I] media-sound/pulseaudio
Available versions: 13.0-r1^t {+X +alsa +alsa-plugin +asyncns bluetooth +caps dbus doc elogind equalizer gconf +gdbm +glib gtk ipv6 jack libsamplerate lirc native-headset ofono-headset +orc oss qt5 realtime selinux sox ssl system-wide systemd tcpd test +udev +webrtc-aec zeroconf ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_ARM="neon" KERNEL="linux"}
Installed versions: 13.0-r1^t(16:48:45 04/05/21)(X alsa alsa-plugin asyncns bluetooth caps dbus elogind gdbm glib gtk ipv6 orc qt5 ssl tcpd udev webrtc-aec zeroconf -doc -equalizer -gconf -jack -libsamplerate -lirc -native-headset -ofono-headset -oss -realtime -selinux -sox -system-wide -systemd -test ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_ARM="-neon" KERNEL="linux")
Homepage: https://www.freedesktop.org/wiki/Software/PulseAudio/
Description: A networked sound server with an advanced plugin system
Code: Select all
$ eix -I media-sound/audacity
[I] media-sound/audacity
Available versions: 2.4.2-r1^t {alsa doc ffmpeg +flac id3tag jack +ladspa +lv2 mad ogg oss portmidi +portmixer portsmf sbsms twolame vamp +vorbis +vst}
Installed versions: 2.4.2-r1^t(19:26:16 11/10/20)(alsa ffmpeg flac ladspa lv2 mad ogg portmixer vorbis vst -doc -id3tag -jack -oss -portmidi -portsmf -sbsms -twolame -vamp)
Homepage: https://web.audacityteam.org/
Description: Free crossplatform audio editor
Code: Select all
$ eix -I www-client/firefox
[I] www-client/firefox
Available versions: 78.10.1(0/esr78) (~)78.11.0(0/esr78) (~)88.0.1(0/88) (~)89.0(0/89) {+clang dbus debug eme-free geckodriver +gmp-autoupdate hardened hwaccel jack lto +openh264 pgo pulseaudio screencast selinux sndio +system-av1 +system-harfbuzz +system-icu +system-jpeg +system-libevent +system-libvpx +system-webp wayland wifi CPU_FLAGS_ARM="neon" L10N="ach af an ar ast az be bg bn br bs ca ca-valencia cak cs cy da de dsb el en-CA 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 ne nl nn oc pa pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv szl ta te th tl tr trs uk ur uz vi xh zh-CN zh-TW"}
Installed versions: 89.0(0/89)(20:45:12 03/06/21)(clang dbus gmp-autoupdate openh264 pulseaudio screencast system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland wifi -debug -eme-free -geckodriver -hardened -hwaccel -jack -lto -pgo -selinux -sndio CPU_FLAGS_ARM="-neon" L10N="en-GB es-ES pt-BR -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -eo -es-AR -es-CL -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 -ne -nl -nn -oc -pa -pl -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW")
Homepage: https://www.mozilla.com/firefox
Description: Firefox Web Browser
Code: Select all
$ cat /etc/asound.conf
cat: /etc/asound.conf: No such file or directory
Code: Select all
$ grep module-alsa-sink /etc/pulse/default.pa
#load-module module-alsa-sink
Code: Select all
$ grep module-alsa-source /etc/pulse/default.pa
#load-module module-alsa-source device=hw:1,0
Code: Select all
$ grep set-default-sink /etc/pulse/default.pa
#set-default-sink output
Code: Select all
$ grep set-default-source /etc/pulse/default.pa
#set-default-source input
Code: Select all
$ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
speexrate
Rate Converter Plugin Using Speex Resampler
pipewire
PipeWire Sound Server
pulse
PulseAudio Sound Server
speex
Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
usbstream:CARD=HDMI
HDA Intel HDMI
USB Stream Output
sysdefault:CARD=PCH
HDA Intel PCH, VT1802 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
Front output / input
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
Code: Select all
$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
speexrate
Rate Converter Plugin Using Speex Resampler
pipewire
PipeWire Sound Server
pulse
PulseAudio Sound Server
speex
Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
hdmi:CARD=HDMI,DEV=0
HDA Intel HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 3
HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
HDA Intel HDMI, HDMI 4
HDMI Audio Output
usbstream:CARD=HDMI
HDA Intel HDMI
USB Stream Output
sysdefault:CARD=PCH
HDA Intel PCH, VT1802 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, VT1802 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
I've also tried the same exercise on a desktop machine running Lubuntu 20.10. That has onboard audio, HDMI audio and a USB Webcam with a built-in microphone. I get the same result, viz. both Audacity and an online recorder in Firefox can record from the microphone simultaneously.