Bluetooth headphones no audio

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.