Ubuntu Flatpak doesn't output sound


I installed the latest flatpak version of SonicPI on Ubuntu 24.04 LTS, but as far as I can tell it doesn’t output any sound at all.

I’ve also been having the same issue after building from source.

Has anyone else had this issue? I realize this isn’t officially supported on Linux, but I had quite a lot of fun with SonicPi on windows and was looking forward to using it again.