you will need MPV and Pipewire for this to work.
this has 44khz -> 48khz conversion by default since linux these days defaults to 48khz
I wrote this with the assistance of chatgpt 4o to try and get a nice easy way to pull some royalty free stream music into OBS
it defaults to a famous lofi study beats stream, but it also saves settings when changed.
starting it creates pipewire devices and starts up the stream