i-rinat / apulse

PulseAudio emulation for ALSA
MIT License
609 stars 35 forks source link

Firefox 56.0 not working with apulse #67

Closed siy1 closed 7 years ago

siy1 commented 7 years ago

For me Firefox 56.0 under Ubuntu 16.04 (64-bit) is not working in combination with apulse; Firefox version 55.x and before worked without problem.

When I open a web page with sound or a video I get the following error:

[apulse] [error] do_connect_pcm: can't get initial hw parameters for playback device "default". Error code 1 (Operation not permitted) [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. IPDL protocol error: Handler returned error code!

In about:config I have set the parameter "security.sandbox.content.write_path_whitelist" to "/dev/snd/"

I also tried to to set "security.sandbox.content.syscall_whitelist" to 16 or 54, but it did not help.

Any hints or ideas how to solve this problem? If you need more information, please ask me!

siy1 commented 7 years ago

Finally, I could solve the problem myself. I tried several of the possible output devices (obtained with aplay -L) and one of the "plughw" devices (in my case "plughw:CARD=PCH,DEV=0") worked.

I also tried the "dmix" devices, but none of them worked.

Cybernetic1 commented 4 years ago

Can you explain what exactly is the setting? Is it in the ~/.asoundrc file? What is the exact wording of that file?