If my theory is correct, and this is an Ubuntu problem, then this is the solution:
It is an internal problem with the Pulseaudio package, which is built into recent Ubuntu versions. Dr_Evil’s solution worked fine for me. On Ubuntu 20, you will need to run default.pa as sudo (sudo gedit /etc/pulse/default.pa) and then restart your machine.