There is a PR on SDGRadio Github
https://github.com/satdreamgr/SDGRadio/pulls
It works fine, there is only one problem that I'm not able to find a solution, and I think it's dab-rtl_tcp-sdgradio-pcm cmdline fault.
I already commented it some days ago, using an RTL_TCP connection, when you change frequency while playing, (preset or manual up/down and OK) plugin kills current cmdline and creates a new one. That's how it works and it can't work in any other way.
The problem is that on RTL_TCP mode, that "killing action" means that the connection to server is closed and server starts to listen again for incoming connections.
But server (at least the rtl_tcp executable found on enigma boxes) isn't very fast waiting for new connections, and then if plugin new cmdline is sent too fast, it gets no response.
We have to stop and restart player (green button).
I've tried to solve it by adding a 3 second delay between stoping and restarting player , that's what happens when you change frequency when is currenty playing,
It seems it works better....
But I faced another problem.... and that's why I think the cmdline is guilty of it....
Look at here... it's a frequency change log using a rtl_tcp server....
That's when it gets connection on new frequency.
Code:
dab-sdgradio by SatDreamGr based on dab-cmdline examples
opt = C 11B
opt = W 30
opt = p 68
opt = G 8
opt = H 192.168.0.13
opt = I 1234
server address = 192.168.0.13, port 1234
setting the rate to 2048000
setting the frequency to 218640000
setting the gain to 8
El Mundo Radio (EFFF) is part of the ensemble
{"ps":"El Mundo Radio "}
El Mundo Radio (EFFF) selected as default program
{"programName":"El Mundo Radio ","programId":"EFFF"}
ensemble MF1 is (EFFE) recognized
There might be a DAB signal here
listener is running
going to start program El Mundo Radio
protection handler is uep_protection
we have now DAB
startaddress = 0
length = 116
subChId = 5
protection = 3
bitrate = 160
{"length":"116","bitrate":"160","protectionLevel":"UEP 3","dabType":"DAB","language":" ","programType":"None"}
{"snr":"2","synced":"on","offset":"-8"}
{"snr":"5","synced":"on","offset":"-40"}
MegaStar (EFF2) is part of the ensemble
{"programName":"MegaStar ","programId":"EFF2"}
{"snr":"9","synced":"on","offset":"-68"}
{"fic_quality":"76"}
RADIO CLASICA (EFEF) is part of the ensemble
{"programName":"RADIO CLASICA ","programId":"EFEF"}
RADIO 1 (EFEE) is part of the ensemble
{"programName":"RADIO 1 ","programId":"EFEE"}
LOS40 CLASSIC (EFF3) is part of the ensemble
{"programName":"LOS40 CLASSIC ","programId":"EFF3"}
REE EUROPA (EFF1) is part of the ensemble
{"programName":"REE EUROPA ","programId":"EFF1"}
RADIO 3 (EFF0) is part of the ensemble
{"programName":"RADIO 3 ","programId":"EFF0"}
{"snr":"11","synced":"on","offset":"-85"}
{"fic_quality":"100"}
{"snr":"13","synced":"on","offset":"-92"}
{"msc_quality":"100 0 0"}
{"snr":"15","synced":"on","offset":"-95"}
{"snr":"17","synced":"on","offset":"-96"}
The red coloured text IT DOESN'T BELONG to this frequency.
It is something from the previous frequency, and then SDGRadio player tries to play an unknown station.
I've been looking for this on py file, but I don't find anything which produce this mixed content.
When stopping console, DAB, RTL and RAW mode programs list variable which name is self.programs is emptied, ( self.programs = [] ) so It may be cmdline output fault when doesn't receive any data from server.
That issue makes that sometimes, we see one program inside programs list which is not from that DAB MUX, and of course it doesn't play.
Stoping and restarting player (green key) solves it.
And finally, when using RAW file reading, when file reaches its end, player is still mute "playing" because it has no way to know it from cmdline....
When changing program inside MUX recording, I've noticed that the audio is sometimes delayed compared to key orders.