The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 22:00:29

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 139  

debug firefox-esr microfone sound

with zoom.us test conference the loudspeaker works but the micro not.
Micro selection in zoom has only one choice, which is the one not working.
Microphone works in chromium zoom conference and in alsa loopback

devuan daedalus
only alsa, no pipewire, no pulseaudio. No other sound servers.
firefox-esr                             
Version: 140.5.0esr-1~deb12u1

Edit : desktop mate 1.26.0

where to start?

Last edited by bai4Iej2need (Today 10:15:15)


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#2 Today 10:10:01

stultumanto
Member
Registered: 2023-12-12
Posts: 101  

Re: debug firefox-esr microfone sound

Did you check the mixer? The Mic channel is often muted (or set to 0 volume) when you first set up a new system with ALSA. I'm not sure what desktop you're using, but you should be able to at least open alsamixer in a terminal and check the mic channel.

Offline

#3 Today 10:16:13

bai4Iej2need
Member
From: Ortenau
Registered: 2021-04-25
Posts: 139  

Re: debug firefox-esr microfone sound

alsamixer : all channels are open.
no, as mic works in chromium and loopback, problem is with interface to firefox-esr and librewolf.

Last edited by bai4Iej2need (Today 10:17:03)


The devil, you know, is better than the angel, you don't know. by a British Citizen, I don't know too good.
One generation abandons the enterprises of another like stranded vessels. By Henry David Thoreau, WALDEN, Economy. Line 236 (Gutenberg text Version)
broken by design :
https://bugs.debian.org/cgi-bin/bugrepo … bug=958390

Offline

#4 Today 10:36:10

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,518  

Re: debug firefox-esr microfone sound

For some firefox version I had to introduce a "dsnoop" pcm on the capture side, so that it could handle multiple concurrent accesses to the microphone. It appeared to be that firefox opened the microphone device before forking and thereby ended up in access contention with itself; the "dsnoop" pcm allows the microphone to be shared.

It resulted in a few pcm declarations in ~/.asoundrc:

pcm.!default {
    type plug
    slave {
        pcm splitter
        rate 48000 ; channels 2
    }
}
pcm.splitter {
    type asym
    playback.pcm plughw
    capture.pcm mic
}

# The "mic" PCM adds "dsnoop" to source opening, which allows a single
# source be used by many "consuming processes". This is required by
# firefox, which otherwise locks out itself from using the microphone.
pcm.mic {
    type dsnoop
    ipc_key 5
    ipc_key_add_uid false
    slave {
        pcm "hw:0,0"
        period_size 2048 ; buffer_size 16384
        periods 0 ; period_time 0
        format S16_LE ; rate 48000 ; channels 2
    }
}

Something like that; it was a while ago and I'm not totally sure about it.

Offline

#5 Today 12:37:51

igorzwx
Member
Registered: 2024-05-06
Posts: 387  

Re: debug firefox-esr microfone sound

Ralph, haven't you noticed that Debian/Devuan has already both dmix and dsnoop enabled by default?

Debian Wiki:
Advanced features such as mixing should already be configured with sane defaults.
_https://wiki.debian.org/ALSA#Configuration

Try this command:

grep -r "defaults.pcm.dmix.rate" /usr/share/alsa/

Last edited by igorzwx (Today 12:38:35)

Offline

Board footer