Bluetooth headphones no audio

Hi

I’m running Sonic Pi 3.1 on a Raspberry Pi4. I’ve connected my bluetooth headphones but I’m not getting any audio from Sonic Pi. I can however get audio when playing a youtube video in chromium. So I think it’s an issue with the setting in Sonic Pi but I can’t figure it out. Any ideas?

I dont know much about Raspi, but I had a similar issue on my Macbook. I found out that the bluethooth headphones had different sample rates for input and output, and sonic pi disliked that (as you might see in the log file). When I connected them after I started sonic pi it worked. Another solution was setting another input source in the audio conf of the system, which matched the output sample rate.