It's so ironic that RetroArch is going through so much trouble to squeeze latency out of video (even running the emulator midway through a frame), yet the Arch Linux package disables the JACK audio backend (the only non-exclusive audio backend that doesn't buffer extra audio on top of the ALSA buffers, alongside ALSA which is buffer-free when talking directly to speakers, and PipeWire which RetroArch doesn't support), and I can't enable JACK in the Flatpak even though it's not explicitly disabled, and RetroArch comes out of the box with a whopping 64 ms of audio latency.