apulse: Firefox 57 can't play any media files.
Hi, on Firefox 56 and older I didn’t have any issues. I updated recently and I encountered this one. Apulse version v0.1.10 Firefox v57
Here’s the “stdout” firefox gives when running “apulse firefox” in a terminal:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: Permission denied
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
[apulse] [error] do_connect_pcm: can't open playback device "default". Error code -13 (Permission denied)
[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.
Running firefox under apulse causes that firefox isn’t able to play any kind of media file at all. And It always outputs the same error.
Any workarounds?
About this issue
- Original URL
- State: open
- Created 7 years ago
- Comments: 15 (1 by maintainers)
This seems to be fixed by adding
/dev/snd/
tosecurity.sandbox.content.write_path_whitelist
in about:config, as suggested by the apulse README: https://github.com/i-rinat/apulse#access-errors-in-do_connect_pcm[Edit: I originally mis-stated the preference as syscall_whitelist instead of write_path_whitelist]
I had the very same problem. Fixed it by upgrading ALSA-Lib to version 1.1.5. APulse works like a charm again.