Open privacyguy123 opened 2 years ago
Perhaps we can start here :) https://superuser.com/questions/1545102/ffmpeg-and-noise-to-keep-connection-alive
I've dived into your docker images and don't 100% understand what's going on - perhaps you can code in an "if" statement somewhere that if no audio is playing we can pipe this silence in so that Roon doesn't disconnect from Audio Entry Point when music stops or pauses.
I'm learning slowly myself - it seems liquidsoap has some sort of option as a "fallback" playlist or audio file if music were to cut out - can we just set this to silence? :)
I have been able to learn that this isn't possible because your addon takes full control of hw:0,1 (in my case) which means that accessing it via dmix (to play multiple streams) is unavailable - this requires editing deeper into your entrypoint-audio file ... perhaps you could share some thoughts?
Liquidsoap has fallback mechanisms but last time I tried them they:
With the recent jump to the latest Liquidsoap version I might give it another try, but no timeline.
The only Entrypoint that is using such a mechanism is the Bluetooth Entrypoint, it makes the setup more robust at the price of a higher load. What Entrypoints are you using for which you want this functionality?
Can you walk me through how to add the fallback into your docker confs?
The Audio one and it cuts out on any pause or silence which is very annoying - I can fix it somewhat by streaming silence from within the DietPi and/or Docker container but no 100% working solution yet as aplay reports "slave in use" because it takes over full control of hw:0 soundcard making dmix unusable ... I've tried editing the conf to say device=dmix
but that's not playing nice with your setup as it seems to be reading the soundcards from aplay -l
and outputting them as args and dmix is a virtual device not a hardwired card that appears in this list.
It seems I've found some other Heath Robinson setup involving Shairport streaming of Tidals audio to use it's Track Radio function - this is what this whole f-around is about, if Roon would implement that part of the API that's been out for an age there'd be no need for any of this nonsense.
Just to add - Shairport-sync plays silence into the stream to keep it alive, exactly what I would have expected Entrypoints to do by default!
Your request is clear, repeating it isn't helpful.
See title