3

After changing my desktop from Arch Linux to NixOS, playing HTML5 videos in Firefox has become buggy. They will fast forward when you play them, but only when using the USB audio adapter. Pulseaudio is used and ALSA is configured to use pulseaudio as well. A few solutions I found stated that I had to install pavucontrol and disable all other audio adapters and try to change the output from digital to analog, none of which made a difference. When I connect my speakers to the built-in adapter, the problem is resolved, the HTML5 videos in Firefox will play as they should. The only error message I got was that an assertion failed about it not being a GVC mixer. Which I could source back to the following code:

g_return_val_if_fail (GVC_IS_MIXER_CARD (card), 0);

However I do not know whether this is the real cause, or how to resolve it, but since it worked fine on Arch Linux, it should be fixable.

Matthijs Steen
  • 253
  • 1
  • 7

1 Answers1

2

Fortunately it had nothing to do with the error about the GVC mixer, because I could not find any information on that problem except the source code itself. Eventually I stumbled upon this issue on GitHub that states the same problem. It had to do with Alsa having bad support for USB audio devices and PulseAudio not being enabled in my build of Firefox. Luckily in NixOS a pull request has been made to make it possible to enable this in Firefox, by enabling nixpkgs.config.pulseaudio.

Matthijs Steen
  • 253
  • 1
  • 7