A kind reminder we would like all registered users to weigh in on one of our forum's security policies.
Please take a moment to read this thread and place a vote.
https://forum.palemoon.org/viewtopic.php?f=17&t=32935

ALSA flag conflicts with Sound I/O flag?

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
milch
Moongazer
Moongazer
Posts: 10
Joined: 2025-07-25, 19:36

ALSA flag conflicts with Sound I/O flag?

Post by milch » 2025-07-30, 22:49

Enabling ALSA at the same time as sndio makes palemoon try only ALSA.
The error thrown says it's in `loop.c : 70` - `can't make support.system handle`
That error comes from the ALSA library as far as I could tell, so might or might not be of help.

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2487
Joined: 2018-05-05, 13:29

Re: ALSA flag conflicts with Sound I/O flag?

Post by vannilla » 2025-07-31, 00:17

As far as I know ALSA and sndio are mutually exclusive (but correct me if I'm wrong) so you're better off enabling only one at a time, never both.

User avatar
milch
Moongazer
Moongazer
Posts: 10
Joined: 2025-07-25, 19:36

Re: ALSA flag conflicts with Sound I/O flag?

Post by milch » 2025-07-31, 08:03

Enabling one or the other involves rebuilding, that's the issue.
I feel it shouldn't be needed if the browser checks every enabled one and uses the responsive one if any.
I'm trying to improve the quality of life of my unofficial musl builds, that's how I noticed.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38514
Joined: 2011-08-28, 17:27
Location: Sweden

Re: ALSA flag conflicts with Sound I/O flag?

Post by Moonchild » 2025-07-31, 08:37

milch wrote:
2025-07-31, 08:03
I feel it shouldn't be needed if the browser checks every enabled one and uses the responsive one if any.
milch wrote:
2025-07-30, 22:49
Enabling ALSA at the same time as sndio makes palemoon try only ALSA.
The checking would happen in a specific order, right? Whichever comes first would be the one used, in that case. If that's ALSA, then it would use ALSA. Doing the check at run-time might be a lot more complex (and risk serious bugs), so that's probably why it's a build-time exclusive thing only. I'll let Travis weigh in for details around the multimedia component in UXP.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1086
Joined: 2020-11-03, 06:47
Location: Philippines

Re: ALSA flag conflicts with Sound I/O flag?

Post by jobbautista9 » 2025-10-29, 14:36

ALSA support is enabled by default when building for Linux, so an explicit --enable-alsa in the mozconfig wouldn't be needed. PulseAudio is also enabled by default if the OS is not Windows or Mac. Currently sndio and JACK (does that JACK support code even still work today?) are the only sound servers which don't have this kind of automatic enabling AFAICS.

This issue of ALSA always being chosen when both ALSA and sndio support are built has actually been a pet peeve of mine when I used to build my own browser for my Linux, so I always added both --disable-pulseaudio and --disable-alsa to ensure Pale Moon only used sndio in my Devuan setup.
Moonchild wrote:
2025-07-31, 08:37
The checking would happen in a specific order, right? Whichever comes first would be the one used, in that case. If that's ALSA, then it would use ALSA. Doing the check at run-time might be a lot more complex (and risk serious bugs), so that's probably why it's a build-time exclusive thing only.
When both PulseAudio and ALSA support are present, PulseAudio would always get "chosen" by Pale Moon. Perhaps because IIRC PulseAudio technically hogs all of ALSA for itself (while trying to capture the ALSA-only applications), while sndio doesn't. So maybe PM would see that ALSA is free and use that first, unlike with PA where it sees ALSA is unavailable to be used directly and so then tries to use PA...
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.