Hello everyone!
Some context:
I am using Ubuntu 24.04
I am using latest sonci pi , built from source
I am using a laptop (dell) connected to a monitor that has output that I am not using ever
I use my sony bluetooth headphones and they work fine with youtube for example
My problem:
When executing that first block of code from the tutorial, I can hear the beat from my laptop speakers , (if youtube is playing at the same time I can hear YT on headphones and sonic pi on laptop speakers)
How can I have sonic pi use my headphones? (already the selected audio output from my OS sound settings)
I have read quite a few threads in here but none seem to be enough (maybe I am not understanding them)
One more bit of info, in case it helps with diagnosing
If I connect my headphones with a jack cable to my laptop, then sonic pi (even without restarting) sends the sound to my headphones just fine
It probably doesn’t switch audio devices automatically.
I don’t know if Ubuntu is running Pipewire or Pulse. If it’s Pipewire (or JACK), you can reroute the audio in qpipewire or qjack.
Thank you for the help Davids
any idea if that is something I need to do through sonic pi or through my OS setting (and sonic pi should pick it up automatically)?
I have tried using pactl info/list sinks /set default sink/ etc but doesn’t seem to work
another thing I tried is using the PulseAudio GUI (I couldn’t find qpipewire)
I can see the sound generated by sonic pi but I can’t see a way to select the output
Latest version expects pipiewire. Use qpwgraph to let you chose the audio output device.
If your distrio doesn’t have qpwgraph it is pretty easy to build from source