-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apulse can't open playback device when alsaequal is used #55
Comments
Worked for me until I did a system upgrade.* |
Hmm. @worldowner, @SoniEx2, have you tried to set "security.sandbox.content.write_path_whitelist" parameter (on about:config page) to "/dev/snd/"? |
I did. Right after the system upgrade, I was getting EACCES (-13 I think), then I set that, now I'm getting EPERM (-1) |
This seems to only happen with firefox... |
Added all these to security.sandbox.content.write_path_whitelist:
And it worked. Sadly no way to filter write path whitelist and read-only path whitelist so this risks my asoundrc... |
Before sandbox Firefox had rw access to all the files that your user has. So it's still better. If your're concerned about your files just run Firefox in container. I run it in LXC and works fine. |
@SoniEx2, as far as I understand, that particular sandbox in Firefox allows accesses to all files for reading. And you only need add paths which need to be writable to the exception list. So, maybe "/dev/snd/,/home/soniex2/.alsaequal.bin" would be enough? |
Nope. I had to add my asoundrc or else it wouldn't work. |
I would like to say that I'm in (very up-to-date) arch using dmix+alsaequal+plug and apulse works out of the box with latest firefox, no need to tweak any settings. Has anything changed since you last discussed about this? |
Also notice alsa is not enabled https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/firefox. |
@memeplex Please visit Edit: Also tell me what you see under |
Sure @SoniEx2
|
@memeplex sandbox doesn't work if multiprocess windows is disabled. |
You're right @SoniEx2. It was an autoreload addon that was disabling multiprocess windows. Now that I have paused that addon I get not sound anymore. I have set the sandbox whitelist to
but to no avail... |
needs to be |
Ahh, ok, shame on me. By trial and error I concluded that I just need to add
to get it working. In particular, there was no need of adding ~/.asoundrc. |
Today I tried on Ubuntu Xenial: ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_equal.so The library exists: Any ideas? |
I currently get exactly the same two pulseaudio log lines when trying to load module-alsa-sink for an alsaequal device on 18.04.3. The library exists, ldd shows no missing libs and arch matches, so I have no idea why it doesn't load. It works from other alsa programs, like aplay and mpd. |
I use alsaequal (https://aur.archlinux.org/packages/alsaequal/) to have system-wide alsa equalizer.
Configuration is simple:
$ cat .asoundrc
ctl.equal {
type equal;
}
pcm.plugequal {
type equal;
slave.pcm "plug:dmix";
}
pcm.!default {
type plug;
slave.pcm plugequal;
}
It doesn't work with apulse:
$ apulse firefox
[apulse] [error] do_connect_pcm: can't open playback device "default". Error code -1 (Permission deined)
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable
of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required
conversions on CPU.
I think that sample rate of a signal sent to equalizer doesn't matter. After equalizer does its job signal is sent further to dmix which handles conversion.
The text was updated successfully, but these errors were encountered: